[ODE] RE: Velocity Damping

Ruud van Gaal ruud at marketgraph.nl
Wed Mar 5 03:59:02 2003


...
> And for angular velocity:
> 
> float angularVelocityDamp = .9;
> float torqueScale = (angularVelocityDamp - 1.0F) / timestep; 
> const dReal* angularVel = dBodyGetAngularVel (body); 
> dBodyAddTorque (body, forceScale * angularVel [0], forceScale 
> * angularVel [1], forceScale * angularVel [2]);

You use 'forceScale' instead of 'torqueScale' in that last statement. Might
just be the problem. ;-)

Ruud