group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
TriMeshCollision.hpp
Go to the documentation of this file.
1
7
8#pragma once
9
10#include "SweptCollision.hpp"
11
12namespace physics
13{
14
20
22HitResult sweepAABBvsTriMesh(glm::vec3 halfExtents, glm::vec3 start, glm::vec3 end, const WorldTriMesh& mesh);
23
45 glm::vec3& pos, glm::vec3& vel, glm::vec3 halfExtents, const WorldTriMesh& mesh, float pushback = 0.03125f);
46
47} // namespace physics
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