Create Dir type for better enforcement of non NaN, normalized representations of directions

This commit is contained in:
Imbris
2020-03-27 21:31:22 -04:00
parent df5a7ef0e3
commit ba3fa16c33
27 changed files with 296 additions and 179 deletions

View File

@ -63,12 +63,6 @@ impl<'a> System<'a> for Sys {
inputs.move_dir
};
// Update `inputs.look_dir`
inputs
.look_dir
.try_normalized()
.unwrap_or(inputs.move_dir.into());
// Process other controller events
for event in controller.events.drain(..) {
match event {