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_components.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dynamics/rigid_body_components.rs') diff --git a/src/dynamics/rigid_body_components.rs b/src/dynamics/rigid_body_components.rs index ec67b66..ae9fa30 100644 --- a/src/dynamics/rigid_body_components.rs +++ b/src/dynamics/rigid_body_components.rs @@ -2,7 +2,7 @@ use crate::data::{ComponentSetMut, ComponentSetOption}; use crate::dynamics::MassProperties; use crate::geometry::{ ColliderChanges, ColliderHandle, ColliderMassProps, ColliderParent, ColliderPosition, - ColliderShape, InteractionGraph, RigidBodyGraphIndex, + ColliderShape, }; use crate::math::{AngVector, AngularInertia, Isometry, Point, Real, Translation, Vector}; use crate::parry::partitioning::IndexedData; @@ -620,7 +620,6 @@ impl RigidBodyCcd { #[derive(Clone, Debug, Copy)] /// Internal identifiers used by the physics engine. pub struct RigidBodyIds { - pub(crate) joint_graph_index: RigidBodyGraphIndex, pub(crate) active_island_id: usize, pub(crate) active_set_id: usize, pub(crate) active_set_offset: usize, @@ -630,7 +629,6 @@ pub struct RigidBodyIds { impl Default for RigidBodyIds { fn default() -> Self { Self { - joint_graph_index: InteractionGraph::<(), ()>::invalid_graph_index(), active_island_id: 0, active_set_id: 0, active_set_offset: 0, -- cgit