diff --git a/src/camera.rs b/src/camera.rs index 869af8b..74dd68f 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -41,6 +41,7 @@ impl Plugin for CameraControllerPlugin

{ /// Per-camera settings for the `big_space` floating origin camera controller. #[derive(Clone, Debug, Reflect, Component)] +#[reflect(Component)] pub struct CameraController { /// Smoothness of translation, from `0.0` to `1.0`. pub smoothness: f64, diff --git a/src/floating_origins.rs b/src/floating_origins.rs index b4ef066..e53a44e 100644 --- a/src/floating_origins.rs +++ b/src/floating_origins.rs @@ -12,6 +12,7 @@ use bevy_utils::HashMap; /// [`BigSpace`] will be computed relative to this floating origin. There should always be exactly /// one entity marked with this component within a [`BigSpace`]. #[derive(Component, Reflect)] +#[reflect(Component)] pub struct FloatingOrigin; /// A "big space" is a hierarchy of high precision reference frames, rendered with a floating @@ -27,6 +28,7 @@ pub struct FloatingOrigin; /// [`GlobalTransform`](bevy_transform::components::GlobalTransform) of all spatial entities within /// that `BigSpace`. #[derive(Debug, Default, Component, Reflect)] +#[reflect(Component)] pub struct BigSpace { /// Set the entity to use as the floating origin within this high precision hierarchy. pub floating_origin: Option, diff --git a/src/reference_frame/mod.rs b/src/reference_frame/mod.rs index 3d90b42..2091eee 100644 --- a/src/reference_frame/mod.rs +++ b/src/reference_frame/mod.rs @@ -34,6 +34,7 @@ pub mod propagation; /// the same rotating reference frame, instead of moving rapidly through space around a star, or /// worse, around the center of the galaxy. #[derive(Debug, Clone, Reflect, Component)] +#[reflect(Component)] pub struct ReferenceFrame { /// The high-precision position of the floating origin's current grid cell local to this /// reference frame. diff --git a/src/reference_frame/propagation.rs b/src/reference_frame/propagation.rs index 7272b69..1416368 100644 --- a/src/reference_frame/propagation.rs +++ b/src/reference_frame/propagation.rs @@ -102,10 +102,10 @@ impl ReferenceFrame

{ /// /// # Safety /// - /// - While this function is running, `transform_query` must not have any fetches for `entity`, nor - /// any of its descendants. - /// - The caller must ensure that the hierarchy leading to `entity` is well-formed and must remain - /// as a tree or a forest. Each entity must have at most one parent. + /// - While this function is running, `transform_query` must not have any fetches for `entity`, + /// nor any of its descendants. + /// - The caller must ensure that the hierarchy leading to `entity` is well-formed and must + /// remain as a tree or a forest. Each entity must have at most one parent. unsafe fn propagate_recursive( parent: &GlobalTransform, transform_query: &Query< diff --git a/src/validation.rs b/src/validation.rs index ff72582..6d1c91b 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -130,7 +130,7 @@ pub(super) mod sealed { fn clone_box(&self) -> Box; } - impl CloneHierarchy for T + impl CloneHierarchy for T where T: 'static + ValidHierarchyNode + Clone, {