Tao.Ode SDK Documentation

Ode.dWorldImpulseToForce Method 

Convert linear/angular impulse to a rigid body to a force/torque vector. If you want to apply a linear or angular impulse to a rigid body, instead of a force or a torque, then you can use this function to convert the desired impulse into a force/torque vector before calling the dBodyAdd... function. This function is given the desired impulse as (ix,iy,iz) and puts the force vector in force. The current algorithm simply scales the impulse by 1/stepsize, where stepsize is the step size for the next step that will be taken.

[Visual Basic]
Public Shared Sub dWorldImpulseToForce( _
   ByVal world As IntPtr, _
   ByVal stepsize As Single, _
   ByVal ix As Single, _
   ByVal iy As Single, _
   ByVal iz As Single, _
   ByRef force As dVector3 _
)
[C#]
public static void dWorldImpulseToForce(
   IntPtr world,
   float stepsize,
   float ix,
   float iy,
   float iz,
   ref dVector3 force
);

Parameters

world
the id of the world
stepsize
stepsize for the next step to be taken
ix
x component of the impulse
iy
y component of the impulse
iz
z component of the impulse
force
A dVector3 containing the resulting force vector

Remarks

This function is given a dWorldID because, in the future, the force computation may depend on integrator parameters that are set as properties of the world.

See Also

Ode Class | Tao.Ode Namespace