[ODE] ? about dAddBodyForce
Jeff Kershner
jeff at jeffkershner.com
Mon Aug 21 14:13:43 MST 2006
When I press the forward key in my application I call dBodyAddForce and add
100 to the forward direction. But as I hold down the forward key, my speed
seems to keep increasing forever. How do I set a maximum speed?
I tried doing the following:
const dReal* pForce = dBodyGetForce(id);
But pForce[0], pForce[1] and pForce[2] are always 0. I realize that ODE
will clear these values to 0 at every frame, so this is not the way to do
it!
How else can I do this?
/jk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://q12.org/pipermail/ode/attachments/20060821/350f021e/attachment.htm
More information about the ODE
mailing list