ReactPhysics3D  v0.10.2
C++ Physics engine library
Loading...
Searching...
No Matches
reactphysics3d::Components Class Referenceabstract

This class represent the abstract class to store components of the ECS. More...

#include <include/reactphysics3d/components/Components.h>

Inheritance diagram for reactphysics3d::Components:
reactphysics3d::BallAndSocketJointComponents reactphysics3d::BodyComponents reactphysics3d::ColliderComponents reactphysics3d::FixedJointComponents reactphysics3d::HingeJointComponents reactphysics3d::JointComponents reactphysics3d::RigidBodyComponents reactphysics3d::SliderJointComponents reactphysics3d::TransformComponents

Public Member Functions

 Components (MemoryAllocator &allocator, size_t componentDataSize, size_t alignmentMarginSize)
 Constructor.
 
virtual ~Components ()
 Destructor.
 
void init ()
 Initialize the components:
 
void removeComponent (Entity entity)
 Remove a component.
 
bool getIsEntityDisabled (Entity entity) const
 Return true if an entity is disabled.
 
void setIsEntityDisabled (Entity entity, bool isDisabled)
 Notify if a given entity is disabled.
 
bool hasComponent (Entity entity) const
 Return true if there is a component for a given entity.
 
bool hasComponentGetIndex (Entity entity, uint32 &entityIndex) const
 Return true if there is a component for a given entiy and if so set the entity index.
 
uint32 getNbComponents () const
 Return the number of components.
 
uint32 getNbEnabledComponents () const
 Return the number of enabled components.
 
uint32 getEntityIndex (Entity entity) const
 Return the index in the arrays for a given entity.
 

Detailed Description

This class represent the abstract class to store components of the ECS.


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