A subsystem of the SpatialQuery system which tracks StaticModel objects in the scene and updates the position and shapes of their associated object bounds accordingly.
More...
#include <spatial_query_system.hpp>
|
| StaticModelBoundsComputeSystem (std::weak_ptr< ECSWorld > world) |
|
A subsystem of the SpatialQuery system which tracks StaticModel objects in the scene and updates the position and shapes of their associated object bounds accordingly.
◆ getSystemTypeName()
static std::string ToyMaker::SpatialQuerySystem::StaticModelBoundsComputeSystem::getSystemTypeName |
( |
| ) |
|
|
inlinestatic |
The system type string for this class.
- Returns
- std::string This class' system type string.
◆ onEntityEnabled()
void SpatialQuerySystem::StaticModelBoundsComputeSystem::onEntityEnabled |
( |
EntityID | entityID | ) |
|
|
overrideprivate |
Computes object bounds for an entity as soon as its enabled for this system.
- Parameters
-
entityID | The entity whose object bounds should be recomputed. |
◆ onEntityUpdated()
void SpatialQuerySystem::StaticModelBoundsComputeSystem::onEntityUpdated |
( |
EntityID | entityID | ) |
|
|
overrideprivate |
Computes object bounds for an entity when it has moved or been scaled.
- Parameters
-
entityID | The entity whose object bounds should be recomputed. |
◆ recomputeObjectBounds()
void SpatialQuerySystem::StaticModelBoundsComputeSystem::recomputeObjectBounds |
( |
EntityID | entityID | ) |
|
|
private |
The method responsible for actually recomputing an entity's object bounds.
- Parameters
-
entityID | The entity whose object bounds are being recomputed. |
The documentation for this class was generated from the following files: