Saga
Saga Game Engine
|
#include "Engine/Components/collisionSystemData.h"
#include "Engine/Systems/collisionSystem.h"
#include "glm/ext/vector_float3.hpp"
#include <optional>
Go to the source code of this file.
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. | |