ProtoZoo
16-03-2007 17:37:32
Hi there!
I need to force an actor to move at a constant speed without slowing down. Like a rolling ball that never gets slower.
I did a very very 'brute-force'-like attempt by updating the actor each frame like this:
1) Get actors linear velocity to get the direction of the velocity
2) Set actors linear velocity with the constant value and the current direction.
Is there any better or more advance way to hold the same velocity continously?
Thanks a lot for your help!
I need to force an actor to move at a constant speed without slowing down. Like a rolling ball that never gets slower.
I did a very very 'brute-force'-like attempt by updating the actor each frame like this:
1) Get actors linear velocity to get the direction of the velocity
2) Set actors linear velocity with the constant value and the current direction.
Is there any better or more advance way to hold the same velocity continously?
Thanks a lot for your help!