added up/down for the viewer setup
This commit is contained in:
parent
f909a3e140
commit
3ebc7b5c51
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ pub fn simulate_viewer_with_keyboard(
|
|||
viewer.position -= Vec3::X * time.delta_seconds();
|
||||
} else if input.pressed(KeyCode::D) {
|
||||
viewer.position += Vec3::X * time.delta_seconds();
|
||||
} else if input.pressed(KeyCode::Up) {
|
||||
viewer.position += Vec3::Y * time.delta_seconds();
|
||||
} else if input.pressed(KeyCode::Down) {
|
||||
viewer.position -= Vec3::Y * time.delta_seconds();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue