Level Class
Represents a game level containing the scene graph and world boundaries. More...
Declaration
Public Member Functions Index
| void | setBounds (const helios::math::aabbf &bounds, const helios::engine::core::units::Unit unit=helios::engine::core::units::Unit::Meter) noexcept |
|
Sets the spatial boundaries of the level. More... | |
| const helios::math::aabbf & | bounds () const noexcept |
|
Retrieves the level boundaries in engine units (meters). More... | |
Private Member Attributes Index
| helios::math::aabbf | bounds_ |
|
The spatial boundaries of the level in engine units (meters). More... | |
Description
Represents a game level containing the scene graph and world boundaries.
The Level class acts as a container for the scene hierarchy (via a root node) and defines the spatial limits of the game world. It handles unit conversion for boundaries to ensure consistent internal representation (meters).
Definition at line 23 of file Level.ixx.
Public Member Functions
bounds()
| inline noexcept |
setBounds()
| inline noexcept |
Sets the spatial boundaries of the level.
Converts the provided bounds from the specified unit to the engine's standard unit (meters) before storing them.
- Parameters
-
bounds The axis-aligned bounding box defining the level limits.
unit The unit of measurement for the provided bounds (defaults to Meter).
Definition at line 44 of file Level.ixx.
References bounds and helios::engine::core::units::from.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.