[][src]Struct sardonyx_controls::ArcBallControlBundle

pub struct ArcBallControlBundle<T: BindingTypes> { /* fields omitted */ }

The bundle that creates an arc ball 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.

See the arc_ball_camera example to see how to use the arc ball camera.

Methods

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

pub fn new() -> Self[src]

Builds a new ArcBallControlBundle with a default sensitivity of 1.0

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

Builds a new ArcBallControlBundle with the provided mouse sensitivity values.

Trait Implementations

impl<T: BindingTypes> Default for ArcBallControlBundle<T>[src]

impl<T: Debug + BindingTypes> Debug for ArcBallControlBundle<T>[src]

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

Auto Trait Implementations

impl<T> Send for ArcBallControlBundle<T>

impl<T> Unpin for ArcBallControlBundle<T> where
    T: Unpin

impl<T> Sync for ArcBallControlBundle<T>

impl<T> UnwindSafe for ArcBallControlBundle<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for ArcBallControlBundle<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> Any for T where
    T: Any

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

impl<T> TryDefault for T where
    T: Default

fn unwrap_default() -> Self

Calls try_default and panics on an error case.

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T