[][src]Trait bevy_easings::Ease

pub trait Ease: Sized {
    fn ease(
        start: Option<Self>,
        end: Self,
        ease_function: EaseFunction,
        easing_type: EasingType
    ) -> EasingComponent<Self> { ... }
fn ease_to(
        self,
        target: Self,
        ease_function: EaseFunction,
        easing_type: EasingType
    ) -> EasingComponent<Self> { ... } }

Trait marking components that can be eased

Provided methods

fn ease(
    start: Option<Self>,
    end: Self,
    ease_function: EaseFunction,
    easing_type: EasingType
) -> EasingComponent<Self>

Create a new easing. If no start is provided, it will try to use the current value of the component for the target entity

fn ease_to(
    self,
    target: Self,
    ease_function: EaseFunction,
    easing_type: EasingType
) -> EasingComponent<Self>

Create a new easing with the current component value as a starting point

Loading content...

Implementations on Foreign Types

impl<T> Ease for Handle<T> where
    EaseValue<T>: Lerp<Scalar = f32>, 
[src]

Loading content...

Implementors

impl<T> Ease for EaseValue<T> where
    T: Lerp<Scalar = f32>, 
[src]

impl<T> Ease for T where
    EaseValue<T>: Lerp<Scalar = f32>, 
[src]

Loading content...