Derive Clone for IslandManager

also fix typo
This commit is contained in:
Waridley
2021-05-13 12:52:12 -05:00
committed by Sébastien Crozet
parent e03dcd6979
commit 62d6b0651b
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ use crate::math::Real;
/// Structure responsible for maintaining the set of active rigid-bodies, and
/// putting non-moving rigid-bodies to sleep to save computation times.
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
#[derive(Clone)]
pub struct IslandManager {
pub(crate) active_dynamic_set: Vec<RigidBodyHandle>,
pub(crate) active_kinematic_set: Vec<RigidBodyHandle>,

View File

@@ -26,7 +26,7 @@ pub struct Collider {
pub(crate) co_material: ColliderMaterial,
pub(crate) co_flags: ColliderFlags,
pub(crate) co_bf_data: ColliderBroadPhaseData,
/// User-defined data associated to this rigid-body.
/// User-defined data associated to this collider.
pub user_data: u128,
}