Struct blender_armature::SampleDesc[][src]

pub struct SampleDesc {
    pub frame_offset: FrameOffset,
    pub should_loop: bool,
}

Describes how to sample animation keyframes

Fields

frame_offset: FrameOffset

NOTE: Sampling begins from the keyframe time of the first defined frame. So if

should_loop: bool

Whether or not the action should loop if current_time - start_time is greater than the duration of the action.

If you have a 5 second long action with should_loop: true then the 7th second would sample from the 2nd second of the action.

If should_loop: false then 7 seconds in will sample from the 5th second.

true is for repeating actions such as walk cycles, false might be used for a one off punch animation that shouldn’t repeat.

Trait Implementations

impl Clone for SampleDesc[src]

impl Copy for SampleDesc[src]

impl Debug for SampleDesc[src]

Auto Trait Implementations

impl RefUnwindSafe for SampleDesc

impl Send for SampleDesc

impl Sync for SampleDesc

impl Unpin for SampleDesc

impl UnwindSafe for SampleDesc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,