set_physics_body_advanced_properties
Update advanced physics body properties—damping, mass scale, inertia, center of mass, gravity, and scale-based mass—on a chosen UPhysicsAsset body, then save the asset.
Instructions
Writes only the given advanced FBodyInstance fields (damping, mass scale, inertia scale, COM nudge, gravity, mass update on scale) of one body of a UPhysicsAsset, chosen by body_index or bone_name, and saves it. Fails when no field is given. Returns the authored values read back, applied_count, saved.
Returns: { physics_asset_path: string, body_index: int, bone_name: string, linear_damping: number, angular_damping: number, mass_scale: number, inertia_tensor_scale: [number], com_nudge: [number], enable_gravity: bool, update_mass_when_scale_changes: bool, applied_count: int, updated: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bone_name | No | Bone name to resolve the body (alternative to body_index). | |
| com_nudge | No | [x,y,z] center-of-mass offset. | |
| body_index | No | Index of the body in the asset; wins over bone_name when both are given | |
| mass_scale | No | Per-instance mass multiplier (>= 0.001). | |
| enable_gravity | No | Whether the body is affected by gravity. | |
| linear_damping | No | Drag that slows linear movement (FBodyInstance LinearDamping, unitless, engine default 0.01); omit to keep the current value | |
| angular_damping | No | Drag that slows rotation (FBodyInstance AngularDamping, unitless, engine default 0); omit to keep the current value | |
| physics_asset_path | Yes | /Game path to the UPhysicsAsset. | |
| inertia_tensor_scale | No | [x,y,z] inertia scale. | |
| update_mass_when_scale_changes | No | Recompute mass on scale change. |