Further tweaks to snap turns.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
aba63ebb19
commit
37d0f0fcde
|
@ -71,26 +71,6 @@ fn movement_controls<S, A: 'static>(
|
|||
query.iter_mut()
|
||||
{
|
||||
if **snapping {
|
||||
if let Some(action) = config.action_forward.clone() {
|
||||
if input.active(action) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if let Some(action) = config.action_backward.clone() {
|
||||
if input.active(action) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if let Some(action) = config.action_left.clone() {
|
||||
if input.active(action) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if let Some(action) = config.action_right.clone() {
|
||||
if input.active(action) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if let (Some(_), Some(rotate_left), Some(rotate_right)) = (
|
||||
rotation_speed,
|
||||
config.action_rotate_left.clone(),
|
||||
|
@ -104,6 +84,7 @@ fn movement_controls<S, A: 'static>(
|
|||
}
|
||||
}
|
||||
**snapping = false;
|
||||
continue;
|
||||
} else {
|
||||
let sprinting = if let Some(action) = config.action_sprint.clone() {
|
||||
input.active(action)
|
||||
|
|
Loading…
Reference in New Issue
Block a user