module
CollisionsAdds collision detection to Cubos.
Components
- BoxCollisionShape - holds the box collision shape.
- CapsuleCollisionShape - holds the capsule collision shape.
- Collider - holds collider data.
Events
- CollisionEvent - (TODO) emitted when a collision occurs.
- TriggerEvent - (TODO) emitted when a trigger is entered or exited.
Dependencies
Files
- file collider.hpp
- Component cubos::
engine:: Collider. - file colliding_with.hpp
- Relation cubos::
engine:: CollidingWith. - file contact_manifold.hpp
- Relation cubos::
engine:: ContactManifold. - file plugin.hpp
- Plugin entry point.
- file raycast.hpp
- System argument cubos::
engine:: Raycast. - file box.hpp
- Component cubos::
engine:: BoxCollisionShape. - file capsule.hpp
- Component cubos::
engine:: CapsuleCollisionShape. - file voxel.hpp
- Component cubos::
engine:: VoxelCollisionShape.
Classes
- struct cubos::engine::Collider
- Component which adds a collider to an entity.
- struct cubos::engine::CollidingWith
- Relation which represents a collision.
- class cubos::engine::Raycast
- System argument which allows performing raycast queries among all entities with colliders.
- struct cubos::engine::BoxCollisionShape
- Component which adds a box collision shape to an entity, used with a Collider component.
- struct cubos::engine::CapsuleCollisionShape
- Component which adds a capsule collision shape to an entity, used with a Collider component.
- class cubos::engine::VoxelCollisionShape
- Component which adds a collision shape corresponding to a given voxel grid to an entity, used with a Collider component.
- struct cubos::engine::VoxelCollisionShape::BoxShiftPair
- Struct which holds a sub-box of the voxel collision shape, and its shift from the center of the shape.
Functions
-
auto collisionsPlugin(Cubos& cubos) -> CUBOS_
ENGINE_ API void - Plugin entry function.
Function documentation
CUBOS_ ENGINE_ API void collisionsPlugin(Cubos& cubos)
#include <engine/collisions/plugin.hpp>
Plugin entry function.
Parameters | |
---|---|
cubos | Cubos main class. |