NewtonWorldGetNextBody
Revision as of 08:02, 10 June 2019 by Unknown user (talk)
NewtonWorldGetNextBody
NewtonBody* NewtonWorldGetNextBody (const NewtonWorld* world, const NewtonBody* curBody);
Usage
Returns a pointer to the next body of the world.
Parameters
- const NewtonWorld* world - is the pointer to the Newton world.
- const NewtonBody* curBody - is the pointer to the previous body.
Return
- Pointer to the next body or NULL if there are no more bodies in the world.
Description
Returns a pointer to the next body of the world.
The function acts like an iterator together with NewtonWorldGetFirstBody.
Remarks
Added in Newton 2.0
See also
NewtonWorldGetFirstBody, NewtonWorldGetBodyCount, NewtonWorldForEachBodyInAABBDo, NewtonWorldForEachJointDo