Compare commits
No commits in common. "45ab161f22f23eb55ff32c00d689c69aa1defe94" and "4480b335554ce12c3d21ccc062044a59edd1d39a" have entirely different histories.
45ab161f22
...
4480b33555
|
@ -31,7 +31,7 @@ coord_2d = "0.3"
|
|||
futures-lite = "1"
|
||||
gilrs = "0.10"
|
||||
here_be_dragons = { version = "0.3", features = ["serde"] }
|
||||
leafwing-input-manager = { git = "https://github.com/ndarilek/leafwing-input-manager", branch = "consume" }
|
||||
leafwing-input-manager = "0.9"
|
||||
maze_generator = "2"
|
||||
once_cell = "1"
|
||||
pathfinding = "4"
|
||||
|
|
|
@ -217,8 +217,7 @@ fn controls(
|
|||
trace!("{entity:?}: Stopped moving");
|
||||
actions.release(NavigationAction::SetLinearVelocity);
|
||||
actions.release(NavigationAction::Translate);
|
||||
actions.action_data_mut(NavigationAction::Move).axis_pair =
|
||||
Some(DualAxisData::from_xy(Vec2::ZERO));
|
||||
actions.action_data_mut(NavigationAction::Move).axis_pair = None;
|
||||
}
|
||||
if actions.pressed(NavigationAction::SetLinearVelocity) {
|
||||
if let Some(pair) = actions.axis_pair(NavigationAction::SetLinearVelocity) {
|
||||
|
@ -233,7 +232,7 @@ fn controls(
|
|||
velocity.linvel = Vec2::ZERO;
|
||||
actions
|
||||
.action_data_mut(NavigationAction::SetLinearVelocity)
|
||||
.axis_pair = Some(DualAxisData::from_xy(Vec2::ZERO));
|
||||
.axis_pair = None;
|
||||
}
|
||||
if actions.pressed(NavigationAction::Translate) {
|
||||
if let Some(pair) = actions.axis_pair(NavigationAction::Translate) {
|
||||
|
@ -247,7 +246,7 @@ fn controls(
|
|||
}
|
||||
actions
|
||||
.action_data_mut(NavigationAction::Translate)
|
||||
.axis_pair = Some(DualAxisData::from_xy(Vec2::ZERO));
|
||||
.axis_pair = None;
|
||||
}
|
||||
if !snap_timers.contains_key(&entity) {
|
||||
if let Some(rotation_speed) = rotation_speed {
|
||||
|
|
Loading…
Reference in New Issue
Block a user