NewtonBodyGetNextJoint
NewtonBodyGetNextJoint
NewtonJoint* NewtonBodyGetNextJoint (const NewtonBody* body, const NewtonJoint* joint);
Usage
Returns a pointer to the next joint attached to the given body.
Parameters
- const NewtonBody* body - pointer to the body.
- const NewtonJoint* joint - pointer to the previous joint of the body.
Return
- Pointer to the next joint attached to the body or NULL if there are no more joints attached to the body.
Description
Returns a pointer to the next joint attached to the given body.
The function acts like an iterator together with NewtonBodyGetFirstJoint.
Remarks
Added in Newton 2.0