pub struct HitTestShape { /* private fields */ }Expand description
SSGS — Hit-test shape (v0–v1, 108 bytes)
Defines a collision / selection volume (box, sphere, capsule, cylinder, or mesh) attached to a bone. Used for both tight and fuzzy hit testing.
Implementations§
Source§impl HitTestShape
impl HitTestShape
Sourcepub fn shape_type(&self) -> HitTestShapeType
pub fn shape_type(&self) -> HitTestShapeType
Shape type (box/sphere/capsule/cylinder/mesh)
pub fn set_shape_type(&mut self, value: HitTestShapeType)
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)
pub fn set_padding(&mut self, value: u16)
Sourcepub fn vertex_positions(&self) -> &[Vector3f]
pub fn vertex_positions(&self) -> &[Vector3f]
Mesh vertex positions (VEC3, mesh type only)
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_, mesh type only)
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 HitTestShape
impl Debug for HitTestShape
Source§impl Default for HitTestShape
impl Default for HitTestShape
Source§impl Drop for HitTestShape
impl Drop for HitTestShape
impl Send for HitTestShape
Auto Trait Implementations§
impl !Sync for HitTestShape
impl Freeze for HitTestShape
impl RefUnwindSafe for HitTestShape
impl Unpin for HitTestShape
impl UnsafeUnpin for HitTestShape
impl UnwindSafe for HitTestShape
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