slice_fracture
Slices a UGeometryCollection into a regular X/Y/Z grid of cut pieces, splits islands, and saves the fractured asset for destruction setups.
Instructions
Slices all transforms of a UGeometryCollection asset with a regular grid of slices_x by slices_y by slices_z cuts across its bounds (no angle or offset variation, islands split), then saves it. new_fracture_count is the number of new pieces, measured as the transforms the slicing added; the call fails when it added none (an empty collection, or all three slice counts 0) or when the save fails.
Returns: { geometry_collection_path: string, slices_x: int, slices_y: int, slices_z: int, new_fracture_count: int, transform_count: int, success: bool, saved: bool, save_error: string? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grout | No | Width of the gap left between cut pieces, in cm (default 0) | |
| slices_x | No | Number of evenly spaced X slices, default 2 | |
| slices_y | No | Number of evenly spaced Y slices, default 2 | |
| slices_z | No | Number of evenly spaced Z slices, default 1 | |
| random_seed | No | Seed passed to the slicer, default 1337; angle and offset variation are fixed at 0, so it changes little | |
| geometry_collection_path | Yes | Asset path of the UGeometryCollection |