Skip to main content

BounceResult Struct

Result of a bounce calculation against level bounds. More...

Declaration

struct helios::engine::mechanics::bounds::systems::LevelBoundsBehaviorSystem::BounceResult { ... }

Public Member Attributes Index

boolhitX

True if the X-axis boundary was hit. More...

boolhitY

True if the Y-axis boundary was hit. More...

helios::math::vec3ftranslation

The corrected world position. More...

helios::math::vec3fvelocity

The new velocity after bounce. More...

helios::math::vec3fdirection

The new direction vector. More...

Description

Result of a bounce calculation against level bounds.

Definition at line 63 of file LevelBoundsBehaviorSystem.ixx.

Public Member Attributes

direction

helios::math::vec3f helios::engine::mechanics::bounds::systems::LevelBoundsBehaviorSystem::BounceResult::direction

The new direction vector.

Definition at line 73 of file LevelBoundsBehaviorSystem.ixx.

73 helios::math::vec3f direction;

hitX

bool helios::engine::mechanics::bounds::systems::LevelBoundsBehaviorSystem::BounceResult::hitX

True if the X-axis boundary was hit.

Definition at line 65 of file LevelBoundsBehaviorSystem.ixx.

65 bool hitX;

hitY

bool helios::engine::mechanics::bounds::systems::LevelBoundsBehaviorSystem::BounceResult::hitY

True if the Y-axis boundary was hit.

Definition at line 67 of file LevelBoundsBehaviorSystem.ixx.

67 bool hitY;

translation

helios::math::vec3f helios::engine::mechanics::bounds::systems::LevelBoundsBehaviorSystem::BounceResult::translation

The corrected world position.

Definition at line 69 of file LevelBoundsBehaviorSystem.ixx.

69 helios::math::vec3f translation;

velocity

helios::math::vec3f helios::engine::mechanics::bounds::systems::LevelBoundsBehaviorSystem::BounceResult::velocity

The new velocity after bounce.

Definition at line 71 of file LevelBoundsBehaviorSystem.ixx.

71 helios::math::vec3f velocity;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.