NewtonBodyGetNextContactJoint

From Newton Wiki
Jump to: navigation, search

NewtonBodyGetNextContactJoint

 NewtonJoint* NewtonBodyGetNextContactJoint (const NewtonBody* body, const NewtonJoint* contactJoint);

Usage

Returns a pointer to the next contact joint associated with the given body.

Parameters

  • const NewtonBody* body - pointer to the body.
  • const NewtonJoint* contactJoint - pointer to the previous contact joint of the body.

Return

  • Pointer to the next contact joint associated with the body or NULL if there are no more contact joints associated with the body.

Description

Returns a pointer to the next contact joint associated with the given body.

The function acts like an iterator together with NewtonBodyGetFirstContactJoint.

Remarks

Added since Newton 2.0

See also

NewtonBodyGetFirstContactJoint