NewtonIslandGetBody

From Newton Wiki
Jump to: navigation, search

NewtonIslandGetBody

 NewtonBody* NewtonIslandGetBody (const void* island, int bodyIndex);

Usage

Returns the body at the specified position in the list of bodies of a collision island.

Parameters

  • const void* island - pointer to the collision island.
  • int bodyIndex - the index of the body in the list of bodies of the collision island.

Return

  • Pointer to the requested body.

Description

Returns the body at the specified position in the list of bodies of a collision island.

Remarks

  • Added in Newton 2.0
  • The index specified shall be within the allowed range which is [ 0 .. nr_bodies_in_island - 1 ]

See also

NewtonIslandGetBodyAABB NewtonSetIslandUpdateEvent