cubos::engine::StaticBodyBundle struct

Component which encapsulates the creation all physics components required for a static body. A static body has all physical properties but is physically immovable (its mass is infinite).

May be moved by changing the entity Transform directly, however, this may create abnormal behaviour when interacting with Rigid Bodies.

Check also RigidBodyBundle

Adds:

Public variables

bool isActive
Whether the collider is active.
uint32_t layers
Layers of the collider.
uint32_t mask
Mask of layers which the collider can collide with.
PhysicsMaterial material
Physics material of the rigid body.
glm::vec3 centerOfMass
The center of mass of the rigid body.