|
CeresEngine 0.2.0
A game development framework
|
A system that connects the ECS-system with the scene partition implementation. More...
#include <CeresEngine/Scene/Partition/ScenePartition.hpp>
Public Member Functions | |
| SceneObject | rayCast (const Ray &ray) |
Casts a ray on the scene to find the first SceneObject that gets hit by the ray. | |
| SceneObject | rayCast (const Vector3 &origin, const Vector3 &direction) |
Casts a ray on the scene to find the first SceneObject that gets hit by the ray. | |
Private Member Functions | |
| void | didAdd (const SceneObject &entity) noexcept final |
| void | didRemove (const SceneObject &entity) noexcept final |
| void | didChange (const SceneObject &entity, const EntityChangeSet &changeSet) noexcept final |
Private Attributes | |
| UPtr< ScenePartition > | mScenePartition |
| The scene partition to be managed by the system. | |
A system that connects the ECS-system with the scene partition implementation.
|
finalprivatenoexcept |
|
finalprivatenoexcept |
|
finalprivatenoexcept |
| SceneObject CeresEngine::ScenePartitionSystem::rayCast | ( | const Ray & | ray | ) |
Casts a ray on the scene to find the first SceneObject that gets hit by the ray.
| ray | The ray to be cast on the scene. |
nullptr if no object was hit by the ray.
|
inline |
Casts a ray on the scene to find the first SceneObject that gets hit by the ray.
| ray | The ray to be cast on the scene. |
nullptr if no object was hit by the ray.
|
private |
The scene partition to be managed by the system.