29 bool overlapCylinder(std::shared_ptr<GameWorld> world,
float height,
float radius, glm::vec3 pos);
38 std::optional<RaycastHit>
raycastAllTriangles(std::shared_ptr<GameWorld> world, glm::vec3 pos, glm::vec3 dir);
void registerPhysicsMetaSystem(std::shared_ptr< GameWorld > world)
Register all Groups that the Physics meta system use.
Definition: physics.cpp:26
std::optional< RaycastHit > raycastAllTriangles(std::shared_ptr< GameWorld > world, glm::vec3 pos, glm::vec3 dir)
Cast a ray, hitting any mesh collider.
bool overlapCylinder(std::shared_ptr< GameWorld > world, float height, float radius, glm::vec3 pos)
Determine if a cylinder overlaps with another cylinder in the world.
Definition: physics.cpp:10
A boolean flag to tell if an Entity has a Collider.
Definition: collider.h:11
Collider * collider
Definition: physics.h:13
glm::vec3 normal
Definition: physics.h:16
glm::vec3 pos
Definition: physics.h:15
float t
Definition: physics.h:14