Struct blender_armature::SampleDesc [−][src]
Describes how to sample animation keyframes
Fields
frame_offset: FrameOffset
NOTE: Sampling begins from the keyframe time of the first defined frame. So if
- Your first frame is frame 8
- Your last frame is frame 12
- Your framerate is 4 frames per second Then
- At t=0s frame 8 will be sampled
- At t=2s frame 10 will be sampled
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
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[+]
SS: SubsetOf<SP>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,