Skip to content

Commit

Permalink
Register/Reflect Component of Sensor (Jondolf#141)
Browse files Browse the repository at this point in the history
* Register CoefficientCombine

* Register/Reflect Component of Sensor
  • Loading branch information
grace125 authored and RJ committed Sep 2, 2023
1 parent 25f16ae commit e99e917
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 @@ -561,6 +561,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 e99e917

Please sign in to comment.