pub struct AnimationClip {Show 17 fields
pub name: String,
pub mesh_name: String,
pub source_name: String,
pub looping: bool,
pub sample_rate: f32,
pub start_frame: i32,
pub end_frame: i32,
pub declared_rate: f32,
pub sample_interval: f32,
pub loop_start_frame: i32,
pub instance_count: i32,
pub instanced: bool,
pub loop_start: usize,
pub bone_count: usize,
pub frames: Vec<Vec<Transform>>,
pub duration_ticks: i64,
pub events: Vec<AnimationEvent>,
}Expand description
An animation clip: the bones’ transforms for each frame, and its events.
Fields§
§name: StringThe clip’s name, for example Walk.
mesh_name: StringThe mesh it was made for.
source_name: StringThe original animation file.
looping: boolWhether the clip loops.
sample_rate: f32The frame rate.
start_frame: i32Animation: source frame range for loop-point conversion.
end_frame: i32The last frame of the source range.
declared_rate: f32Declared rate and stored sample interval.
sample_interval: f32The time between stored samples.
loop_start_frame: i32Source frame at which a looping animation resumes.
instance_count: i32Shared animation-instance configuration.
instanced: boolWhether all entities share one instance of the clip.
loop_start: usizeThe frame at which a looping clip starts again.
bone_count: usizeThe number of bones in each frame.
frames: Vec<Vec<Transform>>Frame-major quaternion (xyzw) + translation (xyz) samples.
duration_ticks: i64The clip’s length, in microseconds.
events: Vec<AnimationEvent>The events of the clip.
Trait Implementations§
Source§impl Clone for AnimationClip
impl Clone for AnimationClip
Source§fn clone(&self) -> AnimationClip
fn clone(&self) -> AnimationClip
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnimationClip
impl RefUnwindSafe for AnimationClip
impl Send for AnimationClip
impl Sync for AnimationClip
impl Unpin for AnimationClip
impl UnsafeUnpin for AnimationClip
impl UnwindSafe for AnimationClip
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more