update projection matrices

This commit is contained in:
Hartmut Seichter 2022-12-20 17:13:17 +01:00
parent 3ebc7b5c51
commit 6c8c9d70cb
3 changed files with 27 additions and 22 deletions

View file

@ -87,7 +87,7 @@ pub fn simulate_viewer_with_keyboard(
for mut viewer in query.iter_mut() {
if input.pressed(KeyCode::W) {
viewer.position += Vec3::Z * time.delta_seconds();
} else if (input.pressed(KeyCode::S)) {
} else if input.pressed(KeyCode::S) {
viewer.position -= Vec3::Z * time.delta_seconds();
} else if input.pressed(KeyCode::A) {
viewer.position -= Vec3::X * time.delta_seconds();