Tao.Ode SDK Documentation

Ode.dJointGetBody Method 

Return the bodies that this joint connects. If index is 0 the ``first'' body will be returned, corresponding to the body1 argument of dJointAttach. If index is 1 the ``second'' body will be returned, corresponding to the body2 argument of dJointAttach. If one of these returned body IDs is zero, the joint connects the other body to the static environment. If both body IDs are zero, the joint is in ``limbo'' and has no effect on the simulation.

[Visual Basic]
Public Shared Function dJointGetBody( _
   ByVal joint As IntPtr, _
   ByVal index As Integer _
) As IntPtr
[C#]
public static IntPtr dJointGetBody(
   IntPtr joint,
   int index
);

Parameters

joint
A dJointID
index
An int

Return Value

A dBodyID

See Also

Ode Class | Tao.Ode Namespace