Skip to content

Commit

Permalink
Register/Reflect Component of Sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
grace125 committed Aug 31, 2023
1 parent 5537d0c commit b7b2855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/collider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ fn extract_mesh_vertices_indices(mesh: &Mesh) -> Option<VerticesIndices> {
/// }
/// ```
#[derive(Reflect, Clone, Component, Debug, Default, PartialEq, Eq)]
#[reflect(Component)]
pub struct Sensor;

/// The Axis-Aligned Bounding Box of a collider.
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ impl Plugin for PhysicsSetupPlugin {
.register_type::<LockedAxes>()
.register_type::<CollisionLayers>()
.register_type::<CollidingEntities>()
.register_type::<CoefficientCombine>();
.register_type::<CoefficientCombine>()
.register_type::<Sensor>();

// Configure higher level system sets for the given schedule
let schedule = &self.schedule;
Expand Down

0 comments on commit b7b2855

Please sign in to comment.