Merge pull request #140 from Waridley/joint_set_clone

Derive Clone for JointSet
This commit is contained in:
Sébastien Crozet
2021-03-05 10:30:16 +01:00
committed by GitHub

View File

@@ -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.