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
Auto Trait Implementations
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more