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). Defaulted because a conversion builds MODL.tightHitTestObject without ever assigning it, and an indeterminate enum wrote junk shape types into every export (reference_m3_layer_stack_junk, the same defect one field over). Sphere is what 2,222 of 2,448 shipped models state.
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.