Struct dotrix_core::assets::Animation[][src]

pub struct Animation { /* fields omitted */ }

Implementations

impl Animation[src]

pub fn new() -> Self[src]

pub fn duration(&self) -> Duration[src]

pub fn add_translation_channel(
    &mut self,
    joint_id: usize,
    interpolation: Interpolation,
    timestamps: Vec<f32>,
    translations: Vec<Vec3>
)
[src]

pub fn add_rotation_channel(
    &mut self,
    joint_id: usize,
    interpolation: Interpolation,
    timestamps: Vec<f32>,
    rotations: Vec<Quat>
)
[src]

pub fn add_scale_channel(
    &mut self,
    joint_id: usize,
    interpolation: Interpolation,
    timestamps: Vec<f32>,
    scales: Vec<Vec3>
)
[src]

pub fn sample(&self, keyframe: f32) -> HashMap<usize, TransformBuilder>[src]

Trait Implementations

impl AssetMapGetter<Animation> for Assets[src]

impl Default for Animation[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Component for T where
    T: 'static + Send + Sync
[src]

impl<T> Downcast<T> for T

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SystemContext for T where
    T: 'static + Default + Send + Sync
[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> Upcast<T> for T