NewtonContactJointGetNextContact

From Newton Wiki
Revision as of 08:02, 10 June 2019 by Unknown user (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonContactJointGetNextContact

 void* NewtonContactJointGetNextContact (const NewtonJoint* contactJoint, void* contact);

Usage

Returns a pointer to the next contact point's data of the contact joint.

Parameters

  • const NewtonJoint* contactJoint - pointer to the contact joint.
  • void * - pointer to the previous contact point data.

Return

  • Pointer to the next contact point data or NULL in case there are no further contact points.

Description

Returns a pointer to the next contact point's data of the contact joint.

The function acts like an iterator together with NewtonContactJointGetFirstContact.

Remarks

Added in Newton 2.0

See also

NewtonContactJointGetFirstContact NewtonContactJointGetContactCount NewtonContactJointRemoveContact