Difference between revisions of "NewtonIslandGetBody"

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

Latest revision as of 08:02, 10 June 2019

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