Engine » Collisions module

Adds collision detection to Cubos.

Components

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.

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.

Functions

auto collisionsPlugin(Cubos& cubos) -> CUBOS_ENGINE_API void
Plugin entry function.

Function documentation

CUBOS_ENGINE_API void collisionsPlugin(Cubos& cubos)

Plugin entry function.

Parameters
cubos Cubos main class.