Game Development Community

StaticShape rotateTo command

by James Terry · in Torque Game Engine · 12/07/2006 (9:31 am) · 3 replies

I'm trying to rotate a staticShape around smoothly through script right now using a sequence of schedules and setTransforms.

Does anyone know of any extensions that might make this a little smoother through the engine or whatnot?

Thanks

#1
12/07/2006 (11:30 am)
Maybe animate it, then play the animation? If it were an ItemData you could use: rotate=true.
#2
12/07/2006 (11:32 am)
Right now I have the mouse controlling the rotation, I was thinking of having it rotate to the nearest face.

So far as I can tell, item only allows rotation on 1 axis
#3
12/07/2006 (12:00 pm)
Take a look at item and adapt it to your needs.