Tao.Ode SDK Documentation

Ode.dBodyAddForceAtRelPos Method 

Add force to a body using absolute coordinates at specified relative position. The supplied position vector specifies the point at which the force is supplied in body-relative coordinates.

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

Parameters

body
A dBodyID
fx
A dReal
fy
A dReal
fz
A dReal
px
A dReal
py
A dReal
pz
A dReal

Remarks

Forces are accumulated on to each body, and the accumulators are zeroed after each time step. Force is applied at specified point.

See Also

Ode Class | Tao.Ode Namespace