NewtonJointGetBody0

From Newton Wiki
Jump to: navigation, search

NewtonJointGetBody0

 NewtonBody* NewtonJointGetBody0 (const NewtonJoint* joint);

Usage

Retrieves the first body that belongs to a joint.

Parameters

  • const NewtonJoint* joint - pointer to the joint.

Return

  • Pointer to the body.

Description

Retrieves the first body that belongs to a joint.

Remarks

  • Added since Newton 2.0
  • This function shall be called inside the NewtonContactsProcess callback to get the first body corresponding to the contact joint received as parameter in the callback

See also

NewtonJointGetBody1