aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dynamics/rigid_body.rs2
-rw-r--r--src/dynamics/rigid_body_set.rs2
-rw-r--r--src/geometry/collider.rs2
-rw-r--r--src/geometry/collider_set.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs
index b04ca41..f85ab89 100644
--- a/src/dynamics/rigid_body.rs
+++ b/src/dynamics/rigid_body.rs
@@ -82,7 +82,7 @@ impl RigidBody {
}
}
- pub(crate) fn reset_internal_links(&mut self) {
+ pub(crate) fn reset_internal_references(&mut self) {
self.colliders = Vec::new();
self.joint_graph_index = RigidBodyGraphIndex::new(crate::INVALID_U32);
self.active_island_id = crate::INVALID_USIZE;
diff --git a/src/dynamics/rigid_body_set.rs b/src/dynamics/rigid_body_set.rs
index f7064ed..b857173 100644
--- a/src/dynamics/rigid_body_set.rs
+++ b/src/dynamics/rigid_body_set.rs
@@ -158,7 +158,7 @@ impl RigidBodySet {
pub fn insert(&mut self, mut rb: RigidBody) -> RigidBodyHandle {
// Make sure the internal links are reset, they may not be
// if this rigid-body was obtained by cloning another one.
- rb.reset_internal_links();
+ rb.reset_internal_references();
let handle = self.bodies.insert(rb);
let rb = &mut self.bodies[handle];
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs
index 524f265..f7f4efa 100644
--- a/src/geometry/collider.rs
+++ b/src/geometry/collider.rs
@@ -214,7 +214,7 @@ pub struct Collider {
}
impl Collider {
- pub(crate) fn reset_internal_links(&mut self) {
+ pub(crate) fn reset_internal_references(&mut self) {
self.parent = RigidBodySet::invalid_handle();
self.contact_graph_index = ColliderGraphIndex::new(crate::INVALID_U32);
self.proximity_graph_index = ColliderGraphIndex::new(crate::INVALID_U32);
diff --git a/src/geometry/collider_set.rs b/src/geometry/collider_set.rs
index 0ba5911..fd94675 100644
--- a/src/geometry/collider_set.rs
+++ b/src/geometry/collider_set.rs
@@ -62,7 +62,7 @@ impl ColliderSet {
) -> ColliderHandle {
// Make sure the internal links are reset, they may not be
// if this rigid-body was obtained by cloning another one.
- coll.reset_internal_links();
+ coll.reset_internal_references();
coll.parent = parent_handle;
let parent = bodies