group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
TriMeshCollision.cpp File Reference

BVH builder and swept-AABB-vs-triangle-mesh collision. More...

#include "TriMeshCollision.hpp"
#include <algorithm>
#include <cmath>
#include <glm/geometric.hpp>
Include dependency graph for TriMeshCollision.cpp:

Namespaces

namespace  physics
 Pure physics math — no ECS types, no registry.

Functions

void physics::buildTriMeshBVH (WorldTriMesh &mesh)
 Build the BVH for a WorldTriMesh.
HitResult physics::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.
void physics::depenetrateAABBvsTriMesh (glm::vec3 &pos, glm::vec3 &vel, glm::vec3 halfExtents, const WorldTriMesh &mesh, float pushback=0.03125f)
 Push an AABB out of a triangle mesh using per-triangle SAT MTV.

Detailed Description

BVH builder and swept-AABB-vs-triangle-mesh collision.