pub struct JointTrack3D { /* private fields */ }Expand description
Per-joint keyframe track animating one joint index over time.
Implementations§
Source§impl JointTrack3D
Keyframe sampling helpers for JointTrack3D.
impl JointTrack3D
Keyframe sampling helpers for JointTrack3D.
Sourcepub fn new(joint_index: usize, keyframes: Vec<Keyframe3D>) -> Self
pub fn new(joint_index: usize, keyframes: Vec<Keyframe3D>) -> Self
Sourcepub fn sample(&self, time_secs: f32, fallback: Transform3D) -> Transform3D
pub fn sample(&self, time_secs: f32, fallback: Transform3D) -> Transform3D
Source§impl JointTrack3D
impl JointTrack3D
pub fn get_joint_index(&self) -> usize
pub fn get_mut_joint_index(&mut self) -> &mut usize
pub fn set_joint_index(&mut self, val: usize) -> &mut Self
pub fn get_keyframes(&self) -> &Vec<Keyframe3D>
pub fn get_mut_keyframes(&mut self) -> &mut Vec<Keyframe3D>
pub fn set_keyframes(&mut self, val: Vec<Keyframe3D>) -> &mut Self
Trait Implementations§
Source§impl Clone for JointTrack3D
impl Clone for JointTrack3D
Source§impl Debug for JointTrack3D
impl Debug for JointTrack3D
Source§impl PartialEq for JointTrack3D
impl PartialEq for JointTrack3D
impl StructuralPartialEq for JointTrack3D
Auto Trait Implementations§
impl Forget for JointTrack3D
impl Freeze for JointTrack3D
impl Move for JointTrack3D
impl RefUnwindSafe for JointTrack3D
impl Send for JointTrack3D
impl Sync for JointTrack3D
impl Unpin for JointTrack3D
impl UnsafeUnpin for JointTrack3D
impl UnwindSafe for JointTrack3D
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