ReactPhysics3D: reactphysics3d::Island Class Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Member Functions | List of all members
reactphysics3d::Island Class Reference

An island represent an isolated group of awake bodies that are connected with each other by some contraints (contacts or joints). More...

`#include <include/reactphysics3d/engine/Island.h>`

## Public Member Functions
| Island (uint32 nbMaxBodies, uint32 nbMaxContactManifolds, MemoryManager &memoryManager)
| Constructor.
| ~Island ()
| Destructor.
Island & | operator= (const Island &island)=delete
| Deleted assignment operator.
| Island (const Island &island)=delete
| Deleted copy-constructor.
void | addBody (RigidBody *body)
| Add a body into the island.
void | addContactManifold (ContactManifold *contactManifold)
| Add a contact manifold into the island.
void | addJoint (Joint *joint)
| Add a joint into the island.
uint32 | getNbBodies () const
| Return the number of bodies in the island.
uint32 | getNbContactManifolds () const
| Return the number of contact manifolds in the island.
uint32 | getNbJoints () const
| Return the number of joints in the island.
RigidBody ** | getBodies ()
| Return a pointer to the array of bodies.
ContactManifold ** | getContactManifolds ()
| Return a pointer to the array of contact manifolds.

## Detailed Description

An island represent an isolated group of awake bodies that are connected with each other by some contraints (contacts or joints).

The documentation for this class was generated from the following files:

- include/reactphysics3d/engine/Island.h
- src/engine/Island.cpp