pub struct Motion {
pub fps: u32,
pub duration: f64,
pub frames: Vec<MotionFrame>,
}Expand description
A motion study baked for the player: every frame’s poses, in the order
they play. Keyed by OCCURRENCE id (a node’s occurrence is its solid’s
scene name, ACOMP2:Part, under the occurrence), so the same JSON is also
what a document keeps as a study’s published motion.
Fields§
§fps: u32§duration: f64Seconds.
frames: Vec<MotionFrame>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
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
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Forget for Motion
impl Freeze for Motion
impl Move for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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