Use RMB to boost away again

This commit is contained in:
timokoesters 2019-08-29 19:39:34 +02:00
parent 12365ee381
commit 075827698f
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097

View File

@ -11,6 +11,7 @@ use crate::{
};
use specs::{Entities, Join, Read, ReadStorage, System, WriteStorage};
use std::time::Duration;
use vek::*;
/// This system is responsible for validating controller inputs
pub struct Sys;
@ -140,7 +141,14 @@ impl<'a> System<'a> for Sys {
if controller.main {
local_emitter.emit(LocalEvent::Boost {
entity,
vel: controller.look_dir * 10.0,
vel: controller.look_dir * 7.0,
});
}
if controller.alt {
// Go upward
local_emitter.emit(LocalEvent::Boost {
entity,
vel: controller.look_dir * -7.0,
});
}
}