Skip to content

Commit

Permalink
Warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Apr 29, 2022
1 parent 2589f24 commit 46cb59b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bevy_rapier2d/examples/events2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn setup_physics(mut commands: Commands) {
commands
.spawn()
.insert(Collider::cuboid(80.0, 30.0))
.insert(Sensor)
.insert(Sensor(true))
.insert(Transform::from_xyz(0.0, 100.0, 0.0));

commands
Expand Down
2 changes: 1 addition & 1 deletion bevy_rapier3d/examples/events3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub fn setup_physics(mut commands: Commands) {
commands
.spawn()
.insert(Collider::cuboid(4.0, 1.5, 1.0))
.insert(Sensor)
.insert(Sensor(true))
.insert(Transform::from_xyz(0.0, 5.0, 0.0));

commands
Expand Down

0 comments on commit 46cb59b

Please sign in to comment.