aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/narrow_phase.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2020-11-03 15:33:11 +0100
committerGitHub <noreply@github.com>2020-11-03 15:33:11 +0100
commitf70a840f79943aa6da49db2590e13dcd3f3a89ed (patch)
tree1c743ed924b10ebd0eb0982e5c7d798235c12cee /src/geometry/narrow_phase.rs
parent0cc850dc505a4034103d229fdce22f9ec7bc410a (diff)
parent71611d3e30ce2fddee20832db3c3e0c8b6ba0d07 (diff)
downloadrapier-f70a840f79943aa6da49db2590e13dcd3f3a89ed.tar.gz
rapier-f70a840f79943aa6da49db2590e13dcd3f3a89ed.tar.bz2
rapier-f70a840f79943aa6da49db2590e13dcd3f3a89ed.zip
Merge pull request #54 from dimforge/idiomatic_clone
Allow cloning all the physics components worth cloning
Diffstat (limited to 'src/geometry/narrow_phase.rs')
-rw-r--r--src/geometry/narrow_phase.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/geometry/narrow_phase.rs b/src/geometry/narrow_phase.rs
index e3e52e5..059a640 100644
--- a/src/geometry/narrow_phase.rs
+++ b/src/geometry/narrow_phase.rs
@@ -29,6 +29,7 @@ use std::collections::HashMap;
/// The narrow-phase responsible for computing precise contact information between colliders.
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
+#[derive(Clone)]
pub struct NarrowPhase {
contact_graph: InteractionGraph<ContactPair>,
proximity_graph: InteractionGraph<ProximityPair>,