Skip to main content

InteractionContext Struct

Describes a generic interaction between entities. More...

Declaration

struct helios::engine::common::types::InteractionContext { ... }

Public Member Attributes Index

helios::engine::ecs::EntityHandletarget {}

Entity that is affected by the interaction. More...

helios::engine::ecs::EntityHandleinstigator {}

Entity that initiated the interaction. More...

helios::engine::ecs::EntityHandlecauser {}

Entity that directly caused the interaction (e.g. projectile). More...

helios::math::vec3fcontact {}

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

Description

Describes a generic interaction between entities.

Carries the participating entity handles and the world-space contact point. Used as a base context for more specific interaction types such as DamageContext.

Definition at line 25 of file InteractionContext.ixx.

Public Member Attributes

causer

helios::engine::ecs::EntityHandle helios::engine::common::types::InteractionContext::causer {}

Entity that directly caused the interaction (e.g. projectile).

Definition at line 40 of file InteractionContext.ixx.

contact

helios::math::vec3f helios::engine::common::types::InteractionContext::contact {}

World-space contact point of the interaction.

Definition at line 45 of file InteractionContext.ixx.

instigator

helios::engine::ecs::EntityHandle helios::engine::common::types::InteractionContext::instigator {}

Entity that initiated the interaction.

Definition at line 35 of file InteractionContext.ixx.

target

helios::engine::ecs::EntityHandle helios::engine::common::types::InteractionContext::target {}

Entity that is affected by the interaction.

Definition at line 30 of file InteractionContext.ixx.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.