Saga
Saga Game Engine
Loading...
Searching...
No Matches
collisionSystemHelper.cpp File Reference
Include dependency graph for collisionSystemHelper.cpp:

Namespaces

namespace  Saga
 
namespace  Saga::Systems
 

Functions

std::optional< Collision > Saga::Systems::getClosestCollision (std::shared_ptr< GameWorld > world, std::optional< CollisionSystemData * > systemData, Entity entity, EllipsoidCollider &ellipsoidCollider, std::optional< CylinderCollider * > cylinderCollider, glm::vec3 pos, glm::vec3 dir)
 Retrieve the closest collision to a moving object.
 
glm::vec3 Saga::Systems::doNudge (std::shared_ptr< GameWorld > world, std::optional< CollisionSystemData * > systemData, Entity entity, EllipsoidCollider &ellipsoidCollider, std::optional< CylinderCollider * > cylinderCollider, glm::vec3 pos, Collision &collision)
 Nudge the ellipsoid along the direction specified by the collision normal. This prevents the ellipsoid from sliding along a surface and thus detecting numerous collisions.