rotation
Hey,
I've been trying to get an object rotate round it's own y axis. I thought it would be simple, but i can't get it to work propperly.
I just need a working code that can rotate an object in small steps
around it's own y axis. It has to be an absolute rotation. from about
-10 degrees up to 190 degrees. in a smooth way.
i hope some-one can help
Comments
I am not completely sure
I am not completely sure what you are looking for exactly but this could help you:
for i = 1 to 36 do (obj.transform = rotateYmatrix 10 * obj.transform ; max views redraw)
It is a local Y rotation...
> I just need a working code that can rotate an object in small steps
> around it's own y axis. It has to be an absolute rotation.
You look for an absolute transformation or a local transformation ("its own Y axis") ?? It is not clear...
try a search in maxscript
try a search in maxscript reference on Applying Standard Transformations.
Proud to be a PAKISTANI.