Struct AnimationClip
pub struct AnimationClip<const MAX_TRACKS: usize = 16, const MAX_EVENTS: usize = 8> {
pub duration: f32,
pub looping: bool,
pub tracks: [BoneTrack; MAX_TRACKS],
pub track_count: usize,
pub events: [AnimationEvent; MAX_EVENTS],
pub event_count: usize,
}Expand description
Fixed-capacity skeletal animation clip (HotZeroHeap).
Fields§
§duration: f32§looping: bool§tracks: [BoneTrack; MAX_TRACKS]§track_count: usize§events: [AnimationEvent; MAX_EVENTS]§event_count: usizeImplementations§
§impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> AnimationClip<MAX_TRACKS, MAX_EVENTS>
pub const fn new( duration: f32, looping: bool, ) -> AnimationClip<MAX_TRACKS, MAX_EVENTS>
pub fn sample_into_pose(&self, time: f32, out_pose: &mut [Transform3D])
Trait Implementations§
§impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Clone for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Clone for AnimationClip<MAX_TRACKS, MAX_EVENTS>
§fn clone(&self) -> AnimationClip<MAX_TRACKS, MAX_EVENTS>
fn clone(&self) -> AnimationClip<MAX_TRACKS, MAX_EVENTS>
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 moreimpl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Copy for AnimationClip<MAX_TRACKS, MAX_EVENTS>
§impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Debug for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Debug for AnimationClip<MAX_TRACKS, MAX_EVENTS>
§impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Default for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Default for AnimationClip<MAX_TRACKS, MAX_EVENTS>
§fn default() -> AnimationClip<MAX_TRACKS, MAX_EVENTS>
fn default() -> AnimationClip<MAX_TRACKS, MAX_EVENTS>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Freeze for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> RefUnwindSafe for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Send for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Sync for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> Unpin for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> UnsafeUnpin for AnimationClip<MAX_TRACKS, MAX_EVENTS>
impl<const MAX_TRACKS: usize, const MAX_EVENTS: usize> UnwindSafe for AnimationClip<MAX_TRACKS, MAX_EVENTS>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.