Tao.Ode SDK Documentation

Ode.dGeomSetBody Method 

Set the body associated with a placeable geom. Setting a body on a geom automatically combines the position vector and rotation matrix of the body and geom, so that setting the position or orientation of one will set the value for both objects. Setting a body ID of zero gives the geom its own position and rotation, independent from any body. If the geom was previously connected to a body then its new independent position/rotation is set to the current position/rotation of the body. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.

[Visual Basic]
Public Shared Sub dGeomSetBody( _
   ByVal geom As IntPtr, _
   ByVal body As IntPtr _
)
[C#]
public static void dGeomSetBody(
   IntPtr geom,
   IntPtr body
);

Parameters

geom
A dGeomID
body
A dBodyID

See Also

Ode Class | Tao.Ode Namespace