aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/rigid_body_set.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamics/rigid_body_set.rs')
-rw-r--r--src/dynamics/rigid_body_set.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynamics/rigid_body_set.rs b/src/dynamics/rigid_body_set.rs
index 70a5451..ceb31e4 100644
--- a/src/dynamics/rigid_body_set.rs
+++ b/src/dynamics/rigid_body_set.rs
@@ -156,7 +156,7 @@ impl RigidBodySet {
/*
* Remove joints attached to this rigid-body.
*/
- joints.remove_rigid_body(rb.rb_ids.joint_graph_index, islands, self);
+ joints.remove_joints_attached_to_rigid_body(handle, islands, self);
Some(rb)
}