aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2021-03-05 10:30:16 +0100
committerGitHub <noreply@github.com>2021-03-05 10:30:16 +0100
commite7f805aea45612abb655b3c36a133357fecfcdc4 (patch)
tree49875fca465ff3b96f7d978b717120179390d6b9
parent5079d18bfba8c22a819b16b79a6643be035b9070 (diff)
parent5592daf7fa982bf2cd8cb582b4ffe595d516fc2a (diff)
downloadrapier-e7f805aea45612abb655b3c36a133357fecfcdc4.tar.gz
rapier-e7f805aea45612abb655b3c36a133357fecfcdc4.tar.bz2
rapier-e7f805aea45612abb655b3c36a133357fecfcdc4.zip
Merge pull request #140 from Waridley/joint_set_clone
Derive Clone for JointSet
-rw-r--r--src/dynamics/joint/joint_set.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dynamics/joint/joint_set.rs b/src/dynamics/joint/joint_set.rs
index b3a0fd9..2e4b394 100644
--- a/src/dynamics/joint/joint_set.rs
+++ b/src/dynamics/joint/joint_set.rs
@@ -35,6 +35,7 @@ pub(crate) type JointIndex = usize;
pub(crate) type JointGraphEdge = crate::data::graph::Edge<Joint>;
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
+#[derive(Clone)]
/// A set of joints that can be handled by a physics `World`.
pub struct JointSet {
joint_ids: Arena<TemporaryInteractionIndex>, // Map joint handles to edge ids on the graph.