pub struct BoneTrack { /* private fields */ }Expand description
Rotation and optional Hips translation channels for one humanoid bone.
Implementations§
Source§impl BoneTrack
impl BoneTrack
Sourcepub fn with_rotation(self, rotation: Track<Quat>) -> Self
pub fn with_rotation(self, rotation: Track<Quat>) -> Self
Adds or replaces the rotation channel.
Sourcepub fn with_translation(self, translation: Track<Vec3>) -> Self
pub fn with_translation(self, translation: Track<Vec3>) -> Self
Adds or replaces the translation channel.
Clip validation permits translation only when this track is assigned
to HumanBone::Hips.
Sourcepub fn translation(&self) -> Option<&Track<Vec3>>
pub fn translation(&self) -> Option<&Track<Vec3>>
Returns the translation channel, if present.
Trait Implementations§
impl StructuralPartialEq for BoneTrack
Auto Trait Implementations§
impl Freeze for BoneTrack
impl RefUnwindSafe for BoneTrack
impl Send for BoneTrack
impl Sync for BoneTrack
impl Unpin for BoneTrack
impl UnsafeUnpin for BoneTrack
impl UnwindSafe for BoneTrack
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