From 9c7d24d35d1abe410e6c10e14b62fabfcd554d02 Mon Sep 17 00:00:00 2001 From: Grace Schorno Date: Fri, 18 Aug 2023 12:59:59 -0700 Subject: [PATCH 1/2] Register CoefficientCombine --- src/plugins/setup.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/setup.rs b/src/plugins/setup.rs index b8b1544e..b5151af4 100644 --- a/src/plugins/setup.rs +++ b/src/plugins/setup.rs @@ -100,7 +100,8 @@ impl Plugin for PhysicsSetupPlugin { .register_type::() .register_type::() .register_type::() - .register_type::(); + .register_type::() + .register_type::(); // Configure higher level system sets for the given schedule let schedule = &self.schedule; From b7b2855619affa8dc89897dd12b697b29faea185 Mon Sep 17 00:00:00 2001 From: Grace Schorno Date: Thu, 31 Aug 2023 15:32:17 -0700 Subject: [PATCH 2/2] Register/Reflect Component of Sensor --- src/components/collider.rs | 1 + src/plugins/setup.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/collider.rs b/src/components/collider.rs index ad9de54c..80afaf4e 100644 --- a/src/components/collider.rs +++ b/src/components/collider.rs @@ -412,6 +412,7 @@ fn extract_mesh_vertices_indices(mesh: &Mesh) -> Option { /// } /// ``` #[derive(Reflect, Clone, Component, Debug, Default, PartialEq, Eq)] +#[reflect(Component)] pub struct Sensor; /// The Axis-Aligned Bounding Box of a collider. diff --git a/src/plugins/setup.rs b/src/plugins/setup.rs index e07e3767..f75eb900 100644 --- a/src/plugins/setup.rs +++ b/src/plugins/setup.rs @@ -101,7 +101,8 @@ impl Plugin for PhysicsSetupPlugin { .register_type::() .register_type::() .register_type::() - .register_type::(); + .register_type::() + .register_type::(); // Configure higher level system sets for the given schedule let schedule = &self.schedule;