Tao.Ode SDK Documentation

Ode.dBodyAddRelForce Method 

Add force to a body using relative coordinates. This function takes a force vector that is relative to the body's own frame of reference.

[Visual Basic]
Public Shared Sub dBodyAddRelForce( _
   ByVal body As IntPtr, _
   ByVal fx As Single, _
   ByVal fy As Single, _
   ByVal fz As Single _
)
[C#]
public static void dBodyAddRelForce(
   IntPtr body,
   float fx,
   float fy,
   float fz
);

Parameters

body
A dBodyID
fx
A dReal
fy
A dReal
fz
A dReal

Remarks

Forces are accumulated on to each body, and the accumulators are zeroed after each time step. Force is applied at body's center of mass

See Also

Ode Class | Tao.Ode Namespace