pub struct AttachmentVolume { /* private fields */ }Expand description
ATVL — Attachment volume (v0, 116 bytes)
Like HitTestShape but with two bone indices for attachment-point volumes.
Implementations§
Source§impl AttachmentVolume
impl AttachmentVolume
pub fn set_bone_1(&mut self, value: u32)
pub fn set_bone_2(&mut self, value: u32)
Sourcepub fn shape_type(&self) -> HitTestShapeType
pub fn shape_type(&self) -> HitTestShapeType
Shape type
pub fn set_shape_type(&mut self, value: HitTestShapeType)
Sourcepub fn bone_index(&self) -> u16
pub fn bone_index(&self) -> u16
Primary bone index
pub fn set_bone_index(&mut self, value: u16)
pub fn set_padding(&mut self, value: u16)
Sourcepub fn vertex_positions(&self) -> &[Vector3f]
pub fn vertex_positions(&self) -> &[Vector3f]
Mesh vertex positions (VEC3)
Zero-copy view of the underlying std::vector.
Sourcepub fn vertex_positions_mut(&mut self) -> &mut [Vector3f]
pub fn vertex_positions_mut(&mut self) -> &mut [Vector3f]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_vertex_positions(&mut self, values: &[Vector3f])
pub fn resize_vertex_positions(&mut self, count: usize)
Sourcepub fn face_indices(&self) -> &[u16]
pub fn face_indices(&self) -> &[u16]
Mesh triangle indices (U16_)
Zero-copy view of the underlying std::vector.
Sourcepub fn face_indices_mut(&mut self) -> &mut [u16]
pub fn face_indices_mut(&mut self) -> &mut [u16]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_face_indices(&mut self, values: &[u16])
pub fn resize_face_indices(&mut self, count: usize)
pub fn set_size_x(&mut self, value: f32)
pub fn set_size_y(&mut self, value: f32)
pub fn set_size_z(&mut self, value: f32)
Trait Implementations§
Source§impl Debug for AttachmentVolume
impl Debug for AttachmentVolume
Source§impl Default for AttachmentVolume
impl Default for AttachmentVolume
Source§impl Drop for AttachmentVolume
impl Drop for AttachmentVolume
impl Send for AttachmentVolume
Auto Trait Implementations§
impl !Sync for AttachmentVolume
impl Freeze for AttachmentVolume
impl RefUnwindSafe for AttachmentVolume
impl Unpin for AttachmentVolume
impl UnsafeUnpin for AttachmentVolume
impl UnwindSafe for AttachmentVolume
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