diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index 839675e2..fff3c913 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -16,7 +16,7 @@ pub struct RapierColliderHandle(pub ColliderHandle); #[derive(Component, Debug, Clone)] pub enum AsyncCollider { /// A future triangle-mesh collider based on a Bevy mesh asset. - Mesh(Handle), + TriMesh(Handle), /// A future convex decomposition collider based on a Bevy mesh asset. ConvexDecomposition(Handle, VHACDParameters), } diff --git a/src/plugin/systems.rs b/src/plugin/systems.rs index 241019cf..12c84fee 100644 --- a/src/plugin/systems.rs +++ b/src/plugin/systems.rs @@ -549,7 +549,7 @@ pub fn init_async_shapes( ) { for (entity, async_shape) in async_shapes.iter() { match async_shape { - AsyncCollider::Mesh(handle) => { + AsyncCollider::TriMesh(handle) => { if let Some(coll) = meshes.get(handle).and_then(Collider::bevy_mesh) { commands.entity(entity).insert(coll); }