add_simple_collision_to_static_mesh
Add a Box, Sphere, or Capsule collision primitive sized to a static mesh's bounds, saving it and duplicating non-/Game meshes to dest_path. Not idempotent.
Instructions
Appends one simple collision primitive (Box, Sphere or Capsule) sized to the bounds of a UStaticMesh to its BodySetup and saves the mesh; a mesh outside /Game is first duplicated to dest_path. Not idempotent: each call adds one more (clear them with remove_static_mesh_collision).
Returns: { static_mesh_path, shape, box_count, sphere_count, capsule_count, element_count, collision_added, duplicated_to_game, saved, save_error }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | Box, Sphere or Capsule, case-insensitive, sized from the mesh bounds (default Box; any other value also adds a Box) | |
| dest_path | Yes | Path under /Game to copy a mesh that is not under /Game into before editing (required then; an existing mesh there is reused and edited) | |
| static_mesh_path | Yes | Path to the source UStaticMesh. |