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.
A dBodyID