types Folder
Files Index
| file | helios/engine/modules/physics/collision/types/_module.ixx |
|
Aggregate module for helios::engine::modules::physics::collision::types namespace. More... | |
| file | CollisionBehavior.ixx |
|
Enumeration of collision response behaviors. More... | |
| file | CollisionContext.ixx |
|
Context data for collision events. More... | |
| file | CollisionLayer.ixx |
|
Type definitions for collision layer identifiers. More... | |
| file | CollisionResponse.ixx |
|
Enum for defining collision response behaviors. More... | |
| file | HitPolicy.ixx |
|
Defines collision hit policies controlling how many collisions are reported per frame. More... | |
Description
helios::engine::modules::physics::collision::types
Type definitions for collision system behavior configuration.
Overview
This module provides enumeration types and configuration structures used by the collision detection system to control how collisions are processed and resolved.
Key Types
| Type | Purpose |
|---|---|
| CollisionBehavior | Bitmask enum defining collision response types |
| CollisionContext | Struct containing collision event data |
CollisionBehavior
Bitmask values that can be combined to define collision responses:
| Value | Description |
|---|---|
| None | No collision response |
| Reflect | Reflect velocity off the collision surface |
| Bounce | Bounce with restitution applied |
| Stick | Attach entity to the collision surface |
| Despawn | Remove entity from the game world |
| PassEvent | Emit event without physical response |
| PhaseEvent | Push event to double-buffered event bus |
| FrameEvent | Process event in the current frame |
CollisionContext
Contains collision event data:
| Field | Type | Description |
|---|---|---|
| source | EntityHandle | Source entity handle |
| contact | vec3f | World-space contact point |
| isSolid | bool | True if blocking collision |
| isTrigger | bool | True if trigger collision |
| isCollisionReporter | bool | True if source reports events |
| other | optional<EntityHandle> | Other entity handle (if any) |
| collisionLayerId | uint32_t | Source entity layer |
| otherCollisionLayerId | uint32_t | Other entity layer |
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.