[][src]Struct collada::Animation

pub struct Animation {
    pub target: String,
    pub sample_times: Vec<f32>,
    pub sample_poses: Vec<Matrix4<f32>>,
}

A COLLADA animation consists of mapping of sample times to pose transforms for a single node in the scene (usually a skeleton joint)

Note - COLLADA supports animating arbitrary 'outputs', not just pose transforms, (eg colors, texture offsets, etc), but we'll leave those unsupported for now.

Fields

target: String

The node (joint) this animation is targeting

sample_times: Vec<f32>

Times for each sample (in seconds)

sample_poses: Vec<Matrix4<f32>>

Node pose transforms for each sample. Column-major.

Trait Implementations

impl Debug 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> 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.