[][src]Struct amethyst_controls::FlyControlBundle

pub struct FlyControlBundle<T: BindingTypes> { /* 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.

You might want to add "fly_movement" and "free_rotation" as dependencies of the TransformSystem in order to apply changes made by these systems in the same frame. Adding this bundle will grab the mouse, hide it and keep it centered.

Type parameters

  • T: This are the keys the InputHandler is using for axes and actions. Often, this is a StringBindings.

Systems

This bundle adds the following systems:

  • FlyMovementSystem
  • FreeRotationSystem
  • MouseFocusUpdateSystem
  • CursorHideSystem

Implementations

impl<T: BindingTypes> FlyControlBundle<T>[src]

pub fn new(
    right_input_axis: Option<T::Axis>,
    up_input_axis: Option<T::Axis>,
    forward_input_axis: Option<T::Axis>
) -> Self
[src]

Builds a new fly control bundle using the provided axes as controls.

pub fn with_sensitivity(self, x: f32, y: f32) -> Self[src]

Alters the mouse sensitivy on this FlyControlBundle

pub fn with_speed(self, speed: f32) -> Self[src]

Alters the speed on this FlyControlBundle.

Trait Implementations

impl<T: Debug + BindingTypes> Debug for FlyControlBundle<T> where
    T::Axis: Debug,
    T::Axis: Debug,
    T::Axis: Debug
[src]

impl<'a, 'b, T: BindingTypes> SystemBundle<'a, 'b> for FlyControlBundle<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for FlyControlBundle<T> where
    <T as BindingTypes>::Axis: RefUnwindSafe

impl<T> Send for FlyControlBundle<T> where
    <T as BindingTypes>::Axis: Send

impl<T> Sync for FlyControlBundle<T> where
    <T as BindingTypes>::Axis: Sync

impl<T> Unpin for FlyControlBundle<T> where
    <T as BindingTypes>::Axis: Unpin

impl<T> UnwindSafe for FlyControlBundle<T> where
    <T as BindingTypes>::Axis: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,