pub struct AnimationClip { /* private fields */ }Implementations§
Source§impl AnimationClip
impl AnimationClip
pub fn new(bone_tracks: Vec<BoneAnimationBinding>) -> Self
pub fn new_with_morphs( bone_tracks: Vec<BoneAnimationBinding>, morph_tracks: Vec<MorphAnimationBinding>, ) -> Self
pub fn new_full( bone_tracks: Vec<BoneAnimationBinding>, morph_tracks: Vec<MorphAnimationBinding>, property_track: Option<PropertyAnimationBinding>, ) -> Self
pub fn builder() -> AnimationClipBuilder
pub fn sample_at(&self, frame: f32) -> ClipSample
pub fn sample_into(&self, frame: f32, sample: &mut ClipSample)
pub fn apply_to_pose(&self, frame: f32, pose: &mut PoseArena)
pub fn bone_tracks(&self) -> &[BoneAnimationBinding]
pub fn morph_tracks(&self) -> &[MorphAnimationBinding]
pub fn property_track(&self) -> Option<&PropertyAnimationBinding>
pub fn bone_track_count(&self) -> usize
pub fn morph_track_count(&self) -> usize
pub fn has_property_track(&self) -> bool
pub fn frame_range(&self) -> Option<(u32, u32)>
pub fn frame_bounds(&self) -> Option<ClipFrameBounds>
pub fn find_bone_track(&self, bone: BoneIndex) -> Option<&MovableBoneTrack>
pub fn find_morph_track(&self, morph: MorphIndex) -> Option<&MorphTrack>
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 moreSource§impl Debug for AnimationClip
impl Debug for AnimationClip
Source§impl Default for AnimationClip
impl Default for AnimationClip
Source§fn default() -> AnimationClip
fn default() -> AnimationClip
Returns the “default value” for a type. Read more
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more