Smooth staticshape movement
by Warit Achavanuntakul · in Technical Issues · 01/11/2007 (9:37 am) · 6 replies
Ok, this must sounds very stupid...
How do I smoothly move staticshape to a new location over a period of time. I tried scheduling .setTransform on the object for a 30 times in 1 second and the game slowed down *a lot*. Is there a better way to do this without turning it in to player class?
How do I smoothly move staticshape to a new location over a period of time. I tried scheduling .setTransform on the object for a 30 times in 1 second and the game slowed down *a lot*. Is there a better way to do this without turning it in to player class?
About the author
#2
02/02/2007 (11:36 pm)
Warit you shouldnt need to set the transform so often. try doing it 3 times a second. better yet, make it an object of the item class and you could use setvelocity(). thats what I'm doing for my game.
#3
Thx
02/03/2007 (10:57 am)
Well, for camera class, I can't use setvelocity(). Is there a better way to move it?Thx
#4
02/03/2007 (10:58 am)
(without making it control object, that is...)
#5
Thx
02/03/2007 (10:58 am)
Well, for camera class, I can't use setvelocity(). Is there a better way to move it?Thx
#6
02/03/2007 (4:08 pm)
Pathed camera resource is around somewhere.
Torque Owner Warit Achavanuntakul