[ODE] adding force to an auto-disabled body

rod kay rodkay at mullum.com.au
Fri Mar 3 19:06:42 MST 2006

On Fri, 2006-03-03 at 11:54 +0530, Auro wrote:
> Hi,
>            I guess the ode devs decided to leave re-enabling of dBodys
>         in the
>         ode users hands. Maybe to point out the situation to those new
>         to ODE, a 
>         line or two could be added to the ode docs, mentioning that a
>         force
>         applied to an auto-disabled dBody, will not have effect.
>         >
>         >     i was wondering why auto-disabled dBody's are not
>         'auto-enabled'
>         > whenever a new force is applied to the body ? is there a
>         prohibitive
>         > performance penalty ?
>         >

> the ODE docs already mention and explain this:
> 6.3. Mass and force
>  void dBodySetForce (dBodyID b, dReal x, dReal y, dReal z);
> void dBodySetTorque (dBodyID b, dReal x, dReal y, dReal z);
> Set the body force and torque accumulation vectors. This is mostly
> useful to zero the force and torque for deactivated bodies before they
> are reactivated, in the case where the force-adding functions were
> called on them while they were deactivated.
> Hope this helps.
>  -Auro

   thanks Auro, i guess i should re-read ODE docs ... cheers Rod.

More information about the ODE mailing list