Derive Clone for JointSet

This commit is contained in:
Waridley
2021-03-04 18:05:26 -06:00
parent 5079d18bfb
commit 5592daf7fa

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.