aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/proximity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry/proximity.rs')
-rw-r--r--src/geometry/proximity.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/geometry/proximity.rs b/src/geometry/proximity.rs
index 88e6e76..d3e0dc4 100644
--- a/src/geometry/proximity.rs
+++ b/src/geometry/proximity.rs
@@ -15,6 +15,18 @@ pub struct ProximityPair {
pub(crate) detector_workspace: Option<Box<dyn Any + Send + Sync>>,
}
+// TODO: use the `derive(Clone)` instead?
+impl Clone for ProximityPair {
+ fn clone(&self) -> Self {
+ ProximityPair {
+ pair: self.pair.clone(),
+ proximity: self.proximity.clone(),
+ detector: None,
+ detector_workspace: None,
+ }
+ }
+}
+
impl ProximityPair {
pub(crate) fn new(
pair: ColliderPair,