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 apply_to_pose(&self, frame: f32, pose: &mut PoseArena)
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 find_bone_track(&self, bone: BoneIndex) -> Option<&MovableBoneTrack>
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