Saga
Saga Game Engine
|
Classes | |
struct | RaycastHit |
Functions | |
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. | |
void | registerPhysicsMetaSystem (std::shared_ptr< GameWorld > world) |
Register all Groups that the Physics meta system use. | |
std::optional< RaycastHit > | raycastAllTriangles (std::shared_ptr< GameWorld > world, glm::vec3 pos, glm::vec3 dir) |
Cast a ray, hitting any mesh collider. | |
bool Saga::Physics::overlapCylinder | ( | std::shared_ptr< GameWorld > | world, |
float | height, | ||
float | radius, | ||
glm::vec3 | pos | ||
) |
Determine if a cylinder overlaps with another cylinder in the world.
world | |
height | height of the cylinder. |
radius | radius of the cylinder. |
pos | position of the cylinder. |
std::optional< RaycastHit > Saga::Physics::raycastAllTriangles | ( | std::shared_ptr< GameWorld > | world, |
glm::vec3 | pos, | ||
glm::vec3 | dir | ||
) |
Cast a ray, hitting any mesh collider.
world | |
pos | the starting position of the raycast in world space |
dir | the direction of the raycast in world space |