Skip to content

Commit

Permalink
fix test for upgrade to bevy 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
donedgardo committed Mar 20, 2023
1 parent 15df670 commit e16e439
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ mod input_tests {
test_utils::update(&mut app, 3);
let velocity = app.world.get::<Velocity>(player_entity).unwrap();
assert_eq!(velocity.linvel.floor(),
(Vec2::new(0.7, 0.7).normalize() * 100.).floor());
(Vec2::new(0.7, 0.7).normalize() * 70.).floor());
}


fn setup() -> (App, Entity) {
let mut app = App::new();
app
Expand Down
2 changes: 1 addition & 1 deletion src/physics_bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl From<&EntityInstance> for ObjectPhysicsBundle {
collider: Collider::cuboid(16., 16.),
rigid_body: RigidBody::Fixed,
sensor: Sensor,
events: ActiveEvents::COLLISION_EVENTS
events: ActiveEvents::COLLISION_EVENTS,
},
_ => ObjectPhysicsBundle::default(),
}
Expand Down
1 change: 1 addition & 0 deletions src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub fn connect_test_gamepad(app: &mut App) {
GamepadConnection::Connected(
GamepadInfo { name: "test_gamepad".to_string() }
)));
app.update();
}


Expand Down

0 comments on commit e16e439

Please sign in to comment.