Struct dotrix_core::assets::animation::Animation [−][src]
pub struct Animation { /* fields omitted */ }
Expand description
Asset structure
Implementations
pub fn add_translation_channel(
&mut self,
joint_id: JointId,
interpolation: Interpolation,
timestamps: Vec<f32>,
translations: Vec<Vec3>
)
pub fn add_translation_channel(
&mut self,
joint_id: JointId,
interpolation: Interpolation,
timestamps: Vec<f32>,
translations: Vec<Vec3>
)
Adds translation transformation channel
pub fn add_rotation_channel(
&mut self,
joint_id: JointId,
interpolation: Interpolation,
timestamps: Vec<f32>,
rotations: Vec<Quat>
)
pub fn add_rotation_channel(
&mut self,
joint_id: JointId,
interpolation: Interpolation,
timestamps: Vec<f32>,
rotations: Vec<Quat>
)
Adds rotation transformation channel
pub fn add_scale_channel(
&mut self,
joint_id: JointId,
interpolation: Interpolation,
timestamps: Vec<f32>,
scales: Vec<Vec3>
)
pub fn add_scale_channel(
&mut self,
joint_id: JointId,
interpolation: Interpolation,
timestamps: Vec<f32>,
scales: Vec<Vec3>
)
Adds scale transformation channel
Samples the animeation at some keyframe (s) and returns a HashMap of
crate::assets::Skin
joint id to TransformBuilder
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Animation
impl UnwindSafe for Animation
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more