NewtonJointGetBody1
NewtonJointGetBody1
NewtonBody* NewtonJointGetBody1 (const NewtonJoint* joint);
Usage
Retrieves the second body that belongs to a joint.
Parameters
- const NewtonJoint* joint - pointer to the joint.
Return
- Pointer to the body.
Description
Retrieves the second body that belongs to a joint.
Remarks
- Added in Newton 2.0
- This function shall be called inside the NewtonContactsProcess callback to get the second body corresponding to the contact joint received as parameter in the callback