Struct amethyst_controls::FlyMovementSystem [−][src]
pub struct FlyMovementSystem<A, B> { /* fields omitted */ }The system that manages the fly movement. Generic parameters are the parameters for the InputHandler.
Methods
impl<A, B> FlyMovementSystem<A, B> where
A: Send + Sync + Hash + Eq + Clone + 'static,
B: Send + Sync + Hash + Eq + Clone + 'static, [src]
impl<A, B> FlyMovementSystem<A, B> where
A: Send + Sync + Hash + Eq + Clone + 'static,
B: Send + Sync + Hash + Eq + Clone + 'static, pub fn new(
speed: f32,
right_input_axis: Option<A>,
up_input_axis: Option<A>,
forward_input_axis: Option<A>
) -> Self[src]
pub fn new(
speed: f32,
right_input_axis: Option<A>,
up_input_axis: Option<A>,
forward_input_axis: Option<A>
) -> SelfTrait Implementations
impl<'a, A, B> System<'a> for FlyMovementSystem<A, B> where
A: Send + Sync + Hash + Eq + Clone + 'static,
B: Send + Sync + Hash + Eq + Clone + 'static, [src]
impl<'a, A, B> System<'a> for FlyMovementSystem<A, B> where
A: Send + Sync + Hash + Eq + Clone + 'static,
B: Send + Sync + Hash + Eq + Clone + 'static, type SystemData = (Read<'a, Time>, WriteStorage<'a, Transform>, Read<'a, InputHandler<A, B>>, ReadStorage<'a, FlyControlTag>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (time, transform, input, tag): Self::SystemData)[src]
fn run(&mut self, (time, transform, input, tag): Self::SystemData)Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTimeReturns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>Return the accessor from the [SystemData].
fn setup(&mut self, res: &mut Resources)
fn setup(&mut self, res: &mut Resources)Sets up the Resources using Self::SystemData::setup.
Auto Trait Implementations
impl<A, B> Send for FlyMovementSystem<A, B> where
A: Send,
B: Send,
impl<A, B> Send for FlyMovementSystem<A, B> where
A: Send,
B: Send, impl<A, B> Sync for FlyMovementSystem<A, B> where
A: Sync,
B: Sync,
impl<A, B> Sync for FlyMovementSystem<A, B> where
A: Sync,
B: Sync,