aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/collider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry/collider.rs')
-rw-r--r--src/geometry/collider.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs
index 183446b..23345f7 100644
--- a/src/geometry/collider.rs
+++ b/src/geometry/collider.rs
@@ -132,7 +132,9 @@ impl Shape {
Shape::Triangle(triangle) => {
triangle.toi_and_normal_with_ray(position, ray, max_toi, true)
}
- Shape::Trimesh(_trimesh) => None,
+ Shape::Trimesh(trimesh) => {
+ trimesh.toi_and_normal_with_ray(position, ray, max_toi, true)
+ }
Shape::HeightField(heightfield) => {
heightfield.toi_and_normal_with_ray(position, ray, max_toi, true)
}