NewtonContactJointGetContactCount
Contents
NewtonContactJointGetContactCount
int NewtonContactJointGetContactCount(const NewtonJoint* contactJoint);
Usage
Returns the number of contact points corresponding to the contact joint.
Parameters
- const NewtonJoint* contactJoint - pointer to the contact joint.
Return
- The number of contacts.
Description
Returns the number of contact points corresponding to the contact joint.
Remarks
- Added since Newton 2.0
- To iterate through contacts use NewtonContactJointGetFirstContact and NewtonContactJointGetNextContact
See also
NewtonContactJointGetFirstContact NewtonContactJointGetNextContact NewtonContactJointRemoveContact