45 glm::vec3& pos, glm::vec3& vel, glm::vec3 halfExtents,
const WorldTriMesh& mesh,
float pushback = 0.03125f);
Swept AABB and sphere collision queries against world geometry.
Pure physics math — no ECS types, no registry.
Definition MapLoader.cpp:51
void buildTriMeshBVH(WorldTriMesh &mesh)
Build the BVH for a WorldTriMesh.
Definition TriMeshCollision.cpp:339
void depenetrateAABBvsTriMesh(glm::vec3 &pos, glm::vec3 &vel, glm::vec3 halfExtents, const WorldTriMesh &mesh, float pushback)
Push an AABB out of a triangle mesh using per-triangle SAT MTV.
Definition TriMeshCollision.cpp:418
HitResult sweepAABBvsTriMesh(glm::vec3 halfExtents, glm::vec3 start, glm::vec3 end, const WorldTriMesh &mesh)
Sweep an AABB against a triangle mesh using BVH-accelerated SAT tests.
Definition TriMeshCollision.cpp:371
Result of a swept AABB collision query.
Definition SweptCollision.hpp:111
A triangle mesh with BVH acceleration for collision queries.
Definition SweptCollision.hpp:89