Skip to main content

types Folder

Files Index

filehelios/engine/modules/physics/collision/types/_module.ixx

Aggregate module for helios::engine::modules::physics::collision::types namespace. More...

fileCollisionBehavior.ixx

Enumeration of collision response behaviors. More...

fileCollisionContext.ixx

Context data for collision events. More...

fileCollisionLayer.ixx

Type definitions for collision layer identifiers. More...

fileCollisionResponse.ixx

Enum for defining collision response behaviors. More...

fileHitPolicy.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

TypePurpose
CollisionBehaviorBitmask enum defining collision response types
CollisionContextStruct containing collision event data

CollisionBehavior

Bitmask values that can be combined to define collision responses:

ValueDescription
NoneNo collision response
ReflectReflect velocity off the collision surface
BounceBounce with restitution applied
StickAttach entity to the collision surface
DespawnRemove entity from the game world
PassEventEmit event without physical response
PhaseEventPush event to double-buffered event bus
FrameEventProcess event in the current frame

CollisionContext

Contains collision event data:

FieldTypeDescription
sourceEntityHandleSource entity handle
contactvec3fWorld-space contact point
isSolidboolTrue if blocking collision
isTriggerboolTrue if trigger collision
isCollisionReporterboolTrue if source reports events
otheroptional<EntityHandle>Other entity handle (if any)
collisionLayerIduint32_tSource entity layer
otherCollisionLayerIduint32_tOther entity layer


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.