Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register/Reflect Component of Sensor #141

Merged
merged 3 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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