Skip to main content

CollisionContext Struct

Context data describing a collision event. More...

Declaration

struct helios::engine::modules::physics::collision::types::CollisionContext { ... }

Public Member Attributes Index

helios::engine::ecs::EntityHandlesource

Handle of the source entity that initiated the collision check. More...

helios::math::vec3fcontact

World-space contact point of the collision. More...

boolisSolid

True if the collision involves a solid (blocking) entity. More...

boolisTrigger

True if this is a trigger collision (non-blocking). More...

boolisCollisionReporter

True if the source entity reports collision events. More...

std::optional< helios::engine::ecs::EntityHandle >other

Handle of the other entity involved in the collision. More...

uint32_tcollisionLayerId

Collision layer ID of the source entity. More...

uint32_totherCollisionLayerId

Collision layer ID of the other entity. More...

Description

Context data describing a collision event.

Contains all relevant information about a collision between two entities, including the entities involved, contact point, and collision properties.

Definition at line 26 of file CollisionContext.ixx.

Public Member Attributes

collisionLayerId

uint32_t helios::engine::modules::physics::collision::types::CollisionContext::collisionLayerId

Collision layer ID of the source entity.

Definition at line 63 of file CollisionContext.ixx.

contact

helios::math::vec3f helios::engine::modules::physics::collision::types::CollisionContext::contact

World-space contact point of the collision.

Definition at line 36 of file CollisionContext.ixx.

isCollisionReporter

bool helios::engine::modules::physics::collision::types::CollisionContext::isCollisionReporter

True if the source entity reports collision events.

Definition at line 51 of file CollisionContext.ixx.

isSolid

bool helios::engine::modules::physics::collision::types::CollisionContext::isSolid

True if the collision involves a solid (blocking) entity.

Definition at line 41 of file CollisionContext.ixx.

41 bool isSolid;

isTrigger

bool helios::engine::modules::physics::collision::types::CollisionContext::isTrigger

True if this is a trigger collision (non-blocking).

Definition at line 46 of file CollisionContext.ixx.

other

std::optional<helios::engine::ecs::EntityHandle> helios::engine::modules::physics::collision::types::CollisionContext::other

Handle of the other entity involved in the collision.

May be empty if the collision is with a non-entity object (e.g., world bounds).

Definition at line 58 of file CollisionContext.ixx.

58 std::optional<helios::engine::ecs::EntityHandle> other;

otherCollisionLayerId

uint32_t helios::engine::modules::physics::collision::types::CollisionContext::otherCollisionLayerId

Collision layer ID of the other entity.

Definition at line 68 of file CollisionContext.ixx.

source

helios::engine::ecs::EntityHandle helios::engine::modules::physics::collision::types::CollisionContext::source

Handle of the source entity that initiated the collision check.

Definition at line 31 of file CollisionContext.ixx.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.