Difference between revisions of "NewtonContactJointGetNextContact"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

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