Skip to content

struct

Channel

pub struct Channel {
    pub node: usize,
    pub path: Path,
    pub interpolation: Interpolation,
    pub times: Vec<f32>,
    pub values: Vec<f32>,
}

One node property over time.

Fields

node

pub node: usize

The node it moves.

path

pub path: Path

Which property.

interpolation

pub interpolation: Interpolation

How it moves between keyframes.

times

pub times: Vec<f32>

Keyframe times, in seconds.

values

pub values: Vec<f32>

3 (translation, scale) or 4 (rotation) values per keyframe, ×3 for cubic splines.

Methods

sample

pub fn sample(&self, t: f32) -> Vec<f32>

The value at t seconds (clamped to the keyframes).

Trait implementations