A subsystem of the spatial query system responsible for tracking light volumes and recomputing their ObjectBounds accordingly.
More...
#include <spatial_query_system.hpp>
|
| LightBoundsComputeSystem (std::weak_ptr< ECSWorld > world) |
|
|
static std::string | getSystemTypeName () |
| Gets the system type string associated with this class.
|
|
|
void | onEntityEnabled (EntityID entityID) override |
| Updates a light entity's bounds when it has just been made active.
|
|
void | onEntityUpdated (EntityID entityID) override |
| Updates a light entity's bounds when its position or emissive properties were updated.
|
|
void | recomputeObjectBounds (EntityID entityID) |
| The method responsible for actually recomputing the light entity's object bounds.
|
|
A subsystem of the spatial query system responsible for tracking light volumes and recomputing their ObjectBounds accordingly.
- Todo
- This sort of makes it so that an object with LightEmissionData and StaticModel components gets conflicting results for ObjectBounds. Do we want to allow entities to have both? If not, should we do something to explicitly prevent it?
◆ getSystemTypeName()
static std::string ToyMaker::SpatialQuerySystem::LightBoundsComputeSystem::getSystemTypeName |
( |
| ) |
|
|
inlinestatic |
Gets the system type string associated with this class.
- Returns
- std::string This system's system type string.
◆ onEntityEnabled()
void SpatialQuerySystem::LightBoundsComputeSystem::onEntityEnabled |
( |
EntityID | entityID | ) |
|
|
overrideprivate |
Updates a light entity's bounds when it has just been made active.
- Parameters
-
entityID | The entity that was just made active. |
◆ onEntityUpdated()
void SpatialQuerySystem::LightBoundsComputeSystem::onEntityUpdated |
( |
EntityID | entityID | ) |
|
|
overrideprivate |
Updates a light entity's bounds when its position or emissive properties were updated.
- Parameters
-
entityID | The light entity being updated. |
◆ recomputeObjectBounds()
void SpatialQuerySystem::LightBoundsComputeSystem::recomputeObjectBounds |
( |
EntityID | entityID | ) |
|
|
private |
The method responsible for actually recomputing the light entity's object bounds.
- Parameters
-
entityID | The entity ID of the object. |
The documentation for this class was generated from the following files: