Implemented Flight

This commit is contained in:
Joshua Barretto
2020-11-03 22:46:07 +00:00
parent 9e905b297a
commit 6331ad9455
11 changed files with 79 additions and 35 deletions

View File

@ -13,6 +13,7 @@ use specs::{
saveload::{Marker, MarkerAllocator},
Entities, Join, Read, ReadExpect, ReadStorage, System, WriteStorage,
};
use vek::*;
// const CHARGE_COST: i32 = 200;
// const ROLL_COST: i32 = 30;
@ -72,6 +73,7 @@ impl<'a> System<'a> for Sys {
} else {
inputs.move_dir
};
inputs.move_z = inputs.move_z.clamped(-1.0, 1.0);
// Process other controller events
for event in controller.events.drain(..) {