aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/rigid_body_components.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-06-08 18:03:33 +0200
committerSébastien Crozet <sebastien@crozet.re>2021-06-08 18:23:40 +0200
commitbccb7d4c669fb3bafa94d90486fa4d9b78f88cf8 (patch)
tree2d5615ee56a80f9413776af7e0c31abe04b62afb /src/dynamics/rigid_body_components.rs
parent57ed0430d107aaa9bf43b8c7fc5270008462893d (diff)
downloadrapier-bccb7d4c669fb3bafa94d90486fa4d9b78f88cf8.tar.gz
rapier-bccb7d4c669fb3bafa94d90486fa4d9b78f88cf8.tar.bz2
rapier-bccb7d4c669fb3bafa94d90486fa4d9b78f88cf8.zip
Track the rigid-body graph IDs inside of the JointSet instead of RigidBodyIds
Diffstat (limited to 'src/dynamics/rigid_body_components.rs')
-rw-r--r--src/dynamics/rigid_body_components.rs4
1 files changed, 1 insertions, 3 deletions
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,