Saga
Saga Game Engine
Loading...
Searching...
No Matches
collisionSystemOptimizationDynamic.inl File Reference
Include dependency graph for collisionSystemOptimizationDynamic.inl:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  Saga
 
namespace  Saga::Systems
 

Functions

void Saga::Systems::runOverGridCells (CollisionSystemData &collisionSystemData, glm::vec3 pos, glm::vec3 size, std::function< void(Entity)> callback)
 Calls a function over the grid cells of a uniform grid that includes a certain bounding box.
 
void Saga::Systems::addToUniformGrid (CollisionSystemData &collisionSystemData, Entity entity, CylinderCollider &cylinderCollider, Transform &transform)
 Add an entity to the uniform grid. Here, the entity must contain a cylinder collider and transform, and we add this entity to any grid cell that the cylinder specified by the collider and transform intersects.
 
void Saga::Systems::removeFromUniformGrid (CollisionSystemData &collisionSystemData, Entity entity, CylinderCollider &cylinderCollider, Transform &transform)
 Remove an entity from the uniform grid. Here, the entity must contain a cylinder collider and transform, and we add this entity to any grid cell that the cylinder specified by the collider and transform intersects.