How to move object back and forth?
#1

let's say I want to move object back and forth, from point A to point B, then back to point A and then repeat everything for an infinite loop.
I can move object from point A to point B with MoveDynamicObject and then I guess I could use timer to move object from point B back to point A.
The problem is, how do I know how much time does it take to move an object from point A to point B? MoveDynamicObject doesnt allow me to set time period for object movement, just speed
Reply
#2

MoveDynamicObject itself returns the time in milliseconds that it would take to move the object over the specified distance at the specified speed. You can also use OnDynamicObjectMoved.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
MoveDynamicObject itself returns the time in milliseconds that it would take to move the object over the specified distance at the specified speed. You can also use OnDynamicObjectMoved.
thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)