pub struct Keyframe {
pub time: f32,
pub pose: JointPose,
}Expand description
One keyframe in an animation track: a joint pose sampled at time seconds.
The pose fields (translation, rotation_deg, scale) are given directly
on the keyframe, each defaulting to the identity transform when omitted.
Fields§
§time: f32Time of this keyframe in seconds from the clip start.
pose: JointPoseThe joint’s transform at this keyframe.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Keyframe
impl<'de> Deserialize<'de> for Keyframe
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Keyframe
impl RefUnwindSafe for Keyframe
impl Send for Keyframe
impl Sync for Keyframe
impl Unpin for Keyframe
impl UnsafeUnpin for Keyframe
impl UnwindSafe for Keyframe
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