Skip to content

Commit

Permalink
Fix cargo test failing due to one_way_platform_2d assuming f32
Browse files Browse the repository at this point in the history
  • Loading branch information
datael committed Sep 17, 2023
1 parent 82aee91 commit ba6d7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_xpbd_2d/examples/one_way_platform_2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn setup(
..default()
},
RigidBody::Static,
Position(Vector::Y * 15.0 * 6.0 * y as f32),
Position(Vector::Y * 15.0 * 6.0 * y as Scalar),
Collider::cuboid(25.0 * 20.0, 25.0),
OneWayPlatform::default(),
));
Expand All @@ -125,7 +125,7 @@ fn setup(
RigidBody::Dynamic,
LockedAxes::ROTATION_LOCKED,
Position(Vector::ZERO),
Collider::cuboid(actor_size.x, actor_size.y),
Collider::cuboid(actor_size.x.into(), actor_size.y.into()),
Actor,
PassThroughOneWayPlatform::ByNormal,
));
Expand Down

0 comments on commit ba6d7ee

Please sign in to comment.