diff options
| author | Sébastien Crozet <developer@crozet.re> | 2020-11-24 16:54:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-24 16:54:15 +0100 |
| commit | bdf2e15fdcff4c4757b4875354b2d6e8b9c6939d (patch) | |
| tree | 097166c76d92921b269b28a1e115b3cef89d820b /src/geometry/collider.rs | |
| parent | c641114f016c47f6b22acc084610847f88ff5a66 (diff) | |
| parent | fcafcac66f1792ea155925e3de5055ef50910fb0 (diff) | |
| download | rapier-bdf2e15fdcff4c4757b4875354b2d6e8b9c6939d.tar.gz rapier-bdf2e15fdcff4c4757b4875354b2d6e8b9c6939d.tar.bz2 rapier-bdf2e15fdcff4c4757b4875354b2d6e8b9c6939d.zip | |
Merge pull request #68 from dimforge/read_contacts
Allow access to contact information
Diffstat (limited to 'src/geometry/collider.rs')
| -rw-r--r-- | src/geometry/collider.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index c2adc59..3789cca 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -11,6 +11,7 @@ use ncollide::bounding_volume::AABB; use std::ops::Deref; use std::sync::Arc; +// TODO: move this to its own file. /// The shape of a collider. #[derive(Clone)] pub struct ColliderShape(pub Arc<dyn Shape>); @@ -206,8 +207,6 @@ pub struct Collider { pub restitution: f32, pub(crate) collision_groups: InteractionGroups, pub(crate) solver_groups: InteractionGroups, - pub(crate) contact_graph_index: ColliderGraphIndex, - pub(crate) proximity_graph_index: ColliderGraphIndex, pub(crate) proxy_index: usize, /// User-defined data associated to this rigid-body. pub user_data: u128, @@ -216,8 +215,6 @@ pub struct Collider { impl Collider { pub(crate) fn reset_internal_references(&mut self) { self.parent = RigidBodySet::invalid_handle(); - self.contact_graph_index = InteractionGraph::<Contact>::invalid_graph_index(); - self.proximity_graph_index = InteractionGraph::<Proximity>::invalid_graph_index(); self.proxy_index = crate::INVALID_USIZE; } @@ -533,8 +530,6 @@ impl ColliderBuilder { parent: RigidBodySet::invalid_handle(), position: Isometry::identity(), predicted_position: Isometry::identity(), - contact_graph_index: InteractionGraph::<Contact>::invalid_graph_index(), - proximity_graph_index: InteractionGraph::<Proximity>::invalid_graph_index(), proxy_index: crate::INVALID_USIZE, collision_groups: self.collision_groups, solver_groups: self.solver_groups, |
