I need to be able to load a model and then rotate it on the screen in 10 degree increments when the user presses the "R" key.
The models are actually sheet metal parts that are designed in a CAD system and then converted to 3DS files. Sometimes when I bring in the 3DS file, the models are oriented differently. When I use something like...
rotateentity part, 0,0,10
or
turnentity part, 0,0,10
the models do not rotate on the screen like I want them to. Sometimes they rotate left or right but sometimes they rotate at wierd angles because my rotate command is not applied to the correct XYZ axis.
Is there a way to always rotate a model based upon the view that is currently on the screen?
Imagine that I have a model of the letter "P" on the screen. When the user presses "R" on the keyboard, I want the model to rotate on the screen by 10 degrees. If the user presses the "R" key 9 times, then the model on the screen should look like the letter "d".
I want to have some buttons on the screen that the user can use to orient the model on the screen and then once the model is oriented correctly and flat on the screen, I want the user to be able press the "R" key and have the model rotate in 10 degree increments without turning at wierd angles. I just want it to stay flat and rotate (or turn) at 10 degree increments.
Hopefully someone will understand what my problem is and can recommend a solution.
Thanks,
David
The models are actually sheet metal parts that are designed in a CAD system and then converted to 3DS files. Sometimes when I bring in the 3DS file, the models are oriented differently. When I use something like...
rotateentity part, 0,0,10
or
turnentity part, 0,0,10
the models do not rotate on the screen like I want them to. Sometimes they rotate left or right but sometimes they rotate at wierd angles because my rotate command is not applied to the correct XYZ axis.
Is there a way to always rotate a model based upon the view that is currently on the screen?
Imagine that I have a model of the letter "P" on the screen. When the user presses "R" on the keyboard, I want the model to rotate on the screen by 10 degrees. If the user presses the "R" key 9 times, then the model on the screen should look like the letter "d".
I want to have some buttons on the screen that the user can use to orient the model on the screen and then once the model is oriented correctly and flat on the screen, I want the user to be able press the "R" key and have the model rotate in 10 degree increments without turning at wierd angles. I just want it to stay flat and rotate (or turn) at 10 degree increments.
Hopefully someone will understand what my problem is and can recommend a solution.
Thanks,
David