Skip to main content

ss_runtime_get_shape_vertex_box_coords

Function ss_runtime_get_shape_vertex_box_coords 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_get_shape_vertex_box_coords( context: *mut c_void, out_data: *mut *const c_float, out_len: *mut usize, )
Expand description

Per-vertex normalized bounding-box coordinates paired with ss_runtime_get_shape_vertices. Layout: 12 vertices × (fx, fy) = 24 floats (SHAPE_VERTICES_STRIDE) per part, indexed by part_index * 24. (0, 0) corresponds to the LT corner of the shape’s pre-pivot bounding box, (1, 1) to the RB corner, regardless of pivot offset or coordinate system. Players use this to interpolate the four part-color corners without re-deriving the box layout.