Struct collada::Animation

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

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.