pub struct BillboardBehavior { /* private fields */ }Expand description
BBSC — Billboard behavior (v0, 48 bytes)
Makes a bone always face the camera or a specified direction.
Implementations§
Source§impl BillboardBehavior
impl BillboardBehavior
Sourcepub fn dependents(&self) -> &[u16]
pub fn dependents(&self) -> &[u16]
Dependent bone indices (U16_)
Zero-copy view of the underlying std::vector.
Sourcepub fn dependents_mut(&mut self) -> &mut [u16]
pub fn dependents_mut(&mut self) -> &mut [u16]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_dependents(&mut self, values: &[u16])
pub fn resize_dependents(&mut self, count: usize)
Sourcepub fn bone_index(&self) -> u16
pub fn bone_index(&self) -> u16
Index into BONE array
pub fn set_bone_index(&mut self, value: u16)
Sourcepub fn billboard_type(&self) -> u8
pub fn billboard_type(&self) -> u8
Billboard mode type
pub fn set_billboard_type(&mut self, value: u8)
Sourcepub fn camera_look_at(&self) -> u8
pub fn camera_look_at(&self) -> u8
Camera look-at flag (default: enabled)
pub fn set_camera_look_at(&mut self, value: u8)
Sourcepub fn up(&self) -> Quaternion
pub fn up(&self) -> Quaternion
Up direction quaternion
pub fn set_up(&mut self, value: Quaternion)
Sourcepub fn forward(&self) -> Quaternion
pub fn forward(&self) -> Quaternion
Forward direction quaternion
pub fn set_forward(&mut self, value: Quaternion)
Trait Implementations§
Source§impl Debug for BillboardBehavior
impl Debug for BillboardBehavior
Source§impl Default for BillboardBehavior
impl Default for BillboardBehavior
Source§impl Drop for BillboardBehavior
impl Drop for BillboardBehavior
impl Send for BillboardBehavior
Auto Trait Implementations§
impl !Sync for BillboardBehavior
impl Freeze for BillboardBehavior
impl RefUnwindSafe for BillboardBehavior
impl Unpin for BillboardBehavior
impl UnsafeUnpin for BillboardBehavior
impl UnwindSafe for BillboardBehavior
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