create_physics_asset
Generates a physics asset with bodies and constraints from a skeletal mesh, saves it to a content path, and returns any existing asset unchanged.
Instructions
Creates a UPhysicsAsset at package_path/name, generating bodies and constraints from a skeletal mesh, sets that mesh as its preview mesh and saves it; the mesh is not pointed at the new asset. An existing one there is returned unchanged. Returns bodies, constraints, skeleton_bones, bodies_generated, saved.
Returns: { package_path, already_existed, created, saved, bodies_generated, generation_message, save_error }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Asset name (e.g. 'PA_Cube'). | |
| package_path | No | Content folder for the new asset (default /Game/Physics; an empty string also uses it) | |
| skeletal_mesh_path | No | Skeletal mesh to generate the bodies from (default /Engine/EngineMeshes/SkeletalCube); the call fails when it does not load |