Tao.Ode SDK Documentation

Ode.dJointAttach Method 

Attach the joint to some new bodies. If the joint is already attached, it will be detached from the old bodies first. To attach this joint to only one body, set body1 or body2 to zero - a zero body refers to the static environment. Setting both bodies to zero puts the joint into "limbo", i.e. it will have no effect on the simulation. Some joints, like hinge-2 need to be attached to two bodies to work.

[Visual Basic]
Public Shared Sub dJointAttach( _
   ByVal joint As IntPtr, _
   ByVal body1 As IntPtr, _
   ByVal body2 As IntPtr _
)
[C#]
public static void dJointAttach(
   IntPtr joint,
   IntPtr body1,
   IntPtr body2
);

Parameters

joint
A dJointID
body1
A dBodyID
body2
A dBodyID

See Also

Ode Class | Tao.Ode Namespace