Track the rigid-body graph IDs inside of the JointSet instead of RigidBodyIds

This commit is contained in:
Crozet Sébastien
2021-06-08 18:03:33 +02:00
committed by Sébastien Crozet
parent 57ed0430d1
commit bccb7d4c66
5 changed files with 82 additions and 50 deletions

View File

@@ -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)
}