Bounds.ixx File
Utility functions for computing world-space bounding volumes. More...
Included Headers
#include <helios.engine.modules.rendering.model.components.ModelAabbComponent>
#include <helios.engine.modules.spatial.transform.components.TranslationStateComponent>
#include <helios.engine.modules.spatial.transform.components.ScaleStateComponent>
#include <helios.engine.modules.scene.components.SceneNodeComponent>
#include <helios.engine.modules.spatial.transform.components.RotationStateComponent>
#include <helios.engine.runtime.world.GameWorld>
#include <helios.engine.ecs.GameObject>
#include <helios.core.units.Unit>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.math>
#include <helios.engine.ecs.System>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | modules |
|
Domain-specific components and systems. More... | |
| namespace | physics |
|
Physics simulation and collision detection subsystem for the game engine. More... | |
| namespace | collision |
| namespace | Bounds |
Description
Utility functions for computing world-space bounding volumes.
File Listing
The file content with the documentation metadata removed is:
25export namespace helios::engine::modules::physics::collision::Bounds {
43 inline helios::math::aabbf computeWorldAabb(
51 const helios::math::mat4f& parentTransform = sc.sceneNode()->parent()->worldTransform();
53 const helios::math::vec3f localTranslation = tsc.translation();
54 const helios::math::mat4f localRotation = rsc.rotation();
55 const helios::math::vec3f localScaling = sca.scaling();
57 const helios::math::mat4f mScaling = helios::math::mat4f::identity().withScaling(localScaling);
58 const helios::math::mat4f mTranslation = helios::math::mat4f::identity().withTranslation(localTranslation);
60 const helios::math::mat4f localTransform = mTranslation * (localRotation * mScaling);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.