Struct three_d_asset::KeyFrames
source · pub struct KeyFrames {
pub loop_time: Option<f32>,
pub interpolation: Interpolation,
pub times: Vec<f32>,
pub rotations: Option<Vec<Quat>>,
pub translations: Option<Vec<Vec3>>,
pub scales: Option<Vec<Vec3>>,
pub weights: Option<Vec<Vec<f32>>>,
}Expand description
Contains a set of key frames for rotations, translations, scales and morph weights.
Fields§
§loop_time: Option<f32>Optional time where the animation repeats itself.
interpolation: InterpolationThe type of interpolation used in between the key frames.
times: Vec<f32>The time value for each key frame.
rotations: Option<Vec<Quat>>The rotation for each key frame.
translations: Option<Vec<Vec3>>The rotation for each key frame.
scales: Option<Vec<Vec3>>The non uniform scale for each key frame.
weights: Option<Vec<Vec<f32>>>The morph weights for each key frame.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyFrames
impl<'de> Deserialize<'de> for KeyFrames
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for KeyFrames
impl Send for KeyFrames
impl Sync for KeyFrames
impl Unpin for KeyFrames
impl UnwindSafe for KeyFrames
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