feat: make RigidBody::add_collider private

Colliders must only be added through the `ColliderSet`.
This commit is contained in:
Sébastien Crozet
2024-05-26 18:14:14 +02:00
committed by Sébastien Crozet
parent 5922612ef3
commit d127af7816
2 changed files with 3 additions and 4 deletions

View File

@@ -636,8 +636,7 @@ impl RigidBody {
}
/// Adds a collider to this rigid-body.
// TODO ECS: we keep this public for now just to simply our experiments on bevy_rapier.
pub fn add_collider(
pub(crate) fn add_collider_internal(
&mut self,
co_handle: ColliderHandle,
co_parent: &ColliderParent,