create_convex_collision
Create a convex hull collider for a mesh object to approximate complex shapes with a budgeted vertex count, ensuring a valid convex collision shape for game engines.
Instructions
Create a UCX_ convex hull collider.
Builds a convex hull and decimates it toward max_vertices, re-hulling afterwards so the result stays convex. Use this for shapes a box cannot approximate; use create_box_collision when a box will do, since it is cheaper at runtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Mesh object to build a collider for | |
| collection | No | ||
| max_vertices | No | Hull budget; engines prefer well under 32 | |
| collision_name | No | ||
| parent_to_source | No |