![]() |
ReactPhysics3D
v0.10.2
C++ Physics engine library
|
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. | |
An island represent an isolated group of awake bodies that are connected with each other by some contraints (contacts or joints).