Tao.Ode SDK Documentation

Ode.dBodyAddForceAtPos Method 

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

[Visual Basic]
Public Shared Sub dBodyAddForceAtPos( _
   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 dBodyAddForceAtPos(
   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