pub struct BoneUpdate { /* private fields */ }Expand description
A per-node rotation delta (relative to the node’s rest rotation), applied
as initial_rotation * delta when computing world matrices.
Implementations§
Source§impl BoneUpdate
impl BoneUpdate
Sourcepub fn new(node_index: u32, rotation: Quat) -> Self
pub fn new(node_index: u32, rotation: Quat) -> Self
Creates a rest-relative rotation update for a raw glTF node index.
Sourcepub fn with_translation(
node_index: u32,
rotation: Quat,
translation: Vec3,
) -> Self
pub fn with_translation( node_index: u32, rotation: Quat, translation: Vec3, ) -> Self
Creates a rest-relative rotation and local translation update.
Sourcepub fn node_index(&self) -> u32
pub fn node_index(&self) -> u32
Returns the raw glTF node index updated by this value.
Sourcepub fn translation(&self) -> Option<Vec3>
pub fn translation(&self) -> Option<Vec3>
Returns the optional local translation override.
Trait Implementations§
Source§impl Clone for BoneUpdate
impl Clone for BoneUpdate
Source§impl Debug for BoneUpdate
impl Debug for BoneUpdate
Source§impl PartialEq for BoneUpdate
impl PartialEq for BoneUpdate
impl StructuralPartialEq for BoneUpdate
Auto Trait Implementations§
impl Freeze for BoneUpdate
impl RefUnwindSafe for BoneUpdate
impl Send for BoneUpdate
impl Sync for BoneUpdate
impl Unpin for BoneUpdate
impl UnsafeUnpin for BoneUpdate
impl UnwindSafe for BoneUpdate
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