Struct collada::Animation [] [src]

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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.