pub struct Bone { /* private fields */ }Expand description
BONE — Skeleton bone (v0–v1, 160 bytes)
Each bone has a parent index, animated position/rotation/scale/visibility, and flags controlling inheritance, billboard mode, and IK.
Implementations§
Source§impl Bone
impl Bone
pub fn set_unknown(&mut self, value: u32)
pub fn set_name(&mut self, value: &str)
pub fn set_flags(&mut self, value: BoneFlag)
Sourcepub fn parent_index(&self) -> u16
pub fn parent_index(&self) -> u16
Parent bone index (0xFFFF = root)
pub fn set_parent_index(&mut self, value: u16)
pub fn set_padding(&mut self, value: u16)
Sourcepub fn position(&self) -> Ref<'_, AnimRefVector3f>
pub fn position(&self) -> Ref<'_, AnimRefVector3f>
Animated translation (36 bytes) Borrows the field in place — no copy, no allocation.
pub fn position_mut(&mut self) -> RefMut<'_, AnimRefVector3f>
Sourcepub fn rotation(&self) -> Ref<'_, AnimRefQuaternion>
pub fn rotation(&self) -> Ref<'_, AnimRefQuaternion>
Animated rotation (44 bytes) Borrows the field in place — no copy, no allocation.
pub fn rotation_mut(&mut self) -> RefMut<'_, AnimRefQuaternion>
Sourcepub fn scale(&self) -> Ref<'_, AnimRefVector3f>
pub fn scale(&self) -> Ref<'_, AnimRefVector3f>
Animated scale (36 bytes) Borrows the field in place — no copy, no allocation.
pub fn scale_mut(&mut self) -> RefMut<'_, AnimRefVector3f>
Sourcepub fn visibility(&self) -> Ref<'_, AnimRefU32>
pub fn visibility(&self) -> Ref<'_, AnimRefU32>
Animated visibility flag (20 bytes) Borrows the field in place — no copy, no allocation.
pub fn visibility_mut(&mut self) -> RefMut<'_, AnimRefU32>
Trait Implementations§
impl Send for Bone
Auto Trait Implementations§
impl !Sync for Bone
impl Freeze for Bone
impl RefUnwindSafe for Bone
impl Unpin for Bone
impl UnsafeUnpin for Bone
impl UnwindSafe for Bone
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