From e87b73a2a20fee1ed333d564ba46dbf1c3ca75e2 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 6 Oct 2020 15:49:22 +0200 Subject: Fix compilation in 2D. --- src/geometry/collider.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/geometry/collider.rs') diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index 23345f7..7c293b6 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -124,7 +124,7 @@ impl Shape { } Shape::Cuboid(cuboid) => cuboid.toi_and_normal_with_ray(position, ray, max_toi, true), #[cfg(feature = "dim2")] - Shape::Triangle(triangle) => { + Shape::Triangle(_) | Shape::Trimesh(_) => { // This is not implemented yet in 2D. None } @@ -132,6 +132,7 @@ impl Shape { Shape::Triangle(triangle) => { triangle.toi_and_normal_with_ray(position, ray, max_toi, true) } + #[cfg(feature = "dim3")] Shape::Trimesh(trimesh) => { trimesh.toi_and_normal_with_ray(position, ray, max_toi, true) } -- cgit