ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class contains all the islands of bodies during a frame. More...
#include <include/reactphysics3d/engine/Islands.h>
Public Member Functions | |
Islands (MemoryAllocator &allocator) | |
Constructor. | |
~Islands ()=default | |
Destructor. | |
Islands & | operator= (const Islands &island)=delete |
Assignment operator. | |
Islands (const Islands &island)=default | |
Copy-constructor. | |
uint32 | getNbIslands () const |
Return the number of islands. | |
uint32 | addIsland (uint32 contactManifoldStartIndex) |
Add an island and return its index. | |
void | addBodyToIsland (Entity bodyEntity) |
void | reserveMemory () |
Reserve memory for the current frame. | |
void | clear () |
Clear all the islands. | |
uint32 | getNbMaxBodiesInIslandPreviousFrame () const |
Public Attributes | |
Array< uint > | contactManifoldsIndices |
For each island, index of the first contact manifold of the island in the array of contact manifolds. | |
Array< uint > | nbContactManifolds |
For each island, number of contact manifolds in the island. | |
Array< Entity > | bodyEntities |
Array of all the entities of the bodies in the islands (stored sequentially) | |
Array< uint32 > | startBodyEntitiesIndex |
For each island we store the starting index of the bodies of that island in the "bodyEntities" array. | |
Array< uint32 > | nbBodiesInIsland |
For each island, total number of bodies in the island. | |
This class contains all the islands of bodies during a frame.
An island represent an isolated group of awake bodies that are connected with each other by some contraints (contacts or joints).