pub struct RootTrack {
pub keys: Vec<RootKey>,
}Expand description
The displacement curve of one clip, in the mesh’s model space. Keys are in ascending time order (the build bakes them from the root joint’s keyframe track, so they inherit its ordering).
Fields§
§keys: Vec<RootKey>Curve keys, in ascending time order.
Implementations§
Source§impl RootTrack
impl RootTrack
Sourcepub fn sample(&self, t: f32) -> [f32; 3]
pub fn sample(&self, t: f32) -> [f32; 3]
The curve’s translation at clip-local time t, clamped to the key
range; between keys the translation lerps.
Sourcepub fn delta(&self, t0: f32, t1: f32, duration: f32, looping: bool) -> [f32; 3]
pub fn delta(&self, t0: f32, t1: f32, duration: f32, looping: bool) -> [f32; 3]
The displacement covered between two unwrapped clip times
(t0 <= t1, in the same seconds the clip clock runs on). A looping
clip adds one full per-cycle displacement for every wrap crossed, so a
multi-loop frame (or a long hitch) loses no ground; a non-looping clip
clamps both ends.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootTrack
impl RefUnwindSafe for RootTrack
impl Send for RootTrack
impl Sync for RootTrack
impl Unpin for RootTrack
impl UnsafeUnpin for RootTrack
impl UnwindSafe for RootTrack
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