From bccb7d4c669fb3bafa94d90486fa4d9b78f88cf8 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 8 Jun 2021 18:03:33 +0200 Subject: Track the rigid-body graph IDs inside of the JointSet instead of RigidBodyIds --- src/dynamics/rigid_body_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dynamics/rigid_body_set.rs') 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) } -- cgit