Struct amethyst_controls::FlyControlBundle [−][src]
pub struct FlyControlBundle<A, B> { /* fields omitted */ }
The bundle that creates a flying movement system. Note: Will not actually create a moving entity. It will only register the needed resources and systems. The generic parameters A and B are the ones used in InputHandler<A,B>. You might want to add "fly_movement" and "free_rotation" as dependencies of the TransformSystem. Adding this bundle will grab the mouse, hide it and keep it centered.
Methods
impl<A, B> FlyControlBundle<A, B>
[src]
impl<A, B> FlyControlBundle<A, B>
pub fn new(
right_input_axis: Option<A>,
up_input_axis: Option<A>,
forward_input_axis: Option<A>
) -> Self
[src]
pub fn new(
right_input_axis: Option<A>,
up_input_axis: Option<A>,
forward_input_axis: Option<A>
) -> Self
pub fn with_sensitivity(self, x: f32, y: f32) -> Self
[src]
pub fn with_sensitivity(self, x: f32, y: f32) -> Self
pub fn with_speed(self, speed: f32) -> Self
[src]
pub fn with_speed(self, speed: f32) -> Self
Trait Implementations
impl<'a, 'b, A, B> SystemBundle<'a, 'b> for FlyControlBundle<A, B> where
A: Send + Sync + Hash + Eq + Clone + 'static,
B: Send + Sync + Hash + Eq + Clone + 'static,
[src]
impl<'a, 'b, A, B> SystemBundle<'a, 'b> for FlyControlBundle<A, B> where
A: Send + Sync + Hash + Eq + Clone + 'static,
B: Send + Sync + Hash + Eq + Clone + 'static,
Auto Trait Implementations
impl<A, B> Send for FlyControlBundle<A, B> where
A: Send,
B: Send,
impl<A, B> Send for FlyControlBundle<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for FlyControlBundle<A, B> where
A: Sync,
B: Sync,
impl<A, B> Sync for FlyControlBundle<A, B> where
A: Sync,
B: Sync,