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
impl Clone for SampleDesc
[src]
fn clone(&self) -> SampleDesc
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,