[ODE] How to reach desired velocity in one step

Jan Ruzarovsky (jonatan) jruzarovsky at yahoo.com
Thu Apr 27 13:20:44 MST 2006


Hi,

I have found following answer in FAQ Wiki section:
---------------
The preferred method of setting body velocities during 
the simulation is to use joint motors. They can set 
body velocities to a desired value in one time step, 
provided that the force/torque limit is high enough.
---------------

What does it mean exactly?
I use capsule to approximate avatar. Capsule is 
attached to AMOTOR joint that helps to keep it upright.

How can I set avatar to desired speed (according the 
answer above)? 
Avatar should respond to user input quickly.
All I can get now is that the avatar reaches desired 
speed in few seconds (by adding force to body), which 
is not suitable for dynamic game play.

Some source code fragment would be helpful.

Thank you

jonatan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the ODE mailing list