Saga
Saga Game Engine
|
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <optional>
Go to the source code of this file.
Namespaces | |
namespace | Saga |
namespace | Saga::Geometry |
Functions | |
glm::vec3 | Saga::Geometry::detectAACylinderCylinderCollision (float height0, float radius0, glm::vec3 pos0, float height1, float radius1, glm::vec3 pos1) |
Find the minimum translation vector for two axis-aligned cylinders. If the two cylinders are not penetrating, then return the zero vector. | |
std::optional< std::tuple< float, glm::vec3 > > | Saga::Geometry::movingCylinderCylinderIntersection (float height0, float radius0, glm::vec3 pos0, float height1, float radius1, glm::vec3 pos1, glm::vec3 dir) |
Find the earliest time between intersection of two cylinders, one of which is moving. It must be the case that the two cylinders are not penetrating at the start. | |