From b7b2855619affa8dc89897dd12b697b29faea185 Mon Sep 17 00:00:00 2001 From: Grace Schorno Date: Thu, 31 Aug 2023 15:32:17 -0700 Subject: [PATCH] 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;