set_physics_asset_constraint_limits
Adjust motion types and limits for linear and angular axes on an existing physics asset constraint. Specify only the axes to modify; angular limits in degrees, linear limit in cm shared across X/Y/Z.
Instructions
Set the linear/angular motion types and limits of an existing constraint inside a UPhysicsAsset (read-modify-write: only the axes you provide change). Angular limits are in degrees; the linear limit is a single value shared across X/Y/Z (cm). Each *_motion is Free|Limited|Locked; providing a *_limit without its motion implies Limited on that axis. Idempotent (set-to-fixed-value).
Returns: { physics_asset_path: string, constraint_name: string, constraint_index: int, applied_count: int, saved: bool, save_error?: string, constraint: object }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| twist_limit | No | Optional twist limit in degrees. | |
| linear_limit | No | Optional shared linear limit in cm (applied to all 3 axes). | |
| swing1_limit | No | Optional cone swing1 limit in degrees. | |
| swing2_limit | No | Optional cone swing2 limit in degrees. | |
| twist_motion | No | Optional twist motion: Free|Limited|Locked. | |
| swing1_motion | No | Optional cone swing1 motion: Free|Limited|Locked. | |
| swing2_motion | No | Optional cone swing2 motion: Free|Limited|Locked. | |
| constraint_name | Yes | Name (JointName) of the constraint to edit (see get_physics_asset_info). | |
| linear_x_motion | No | Optional linear X-axis motion: Free|Limited|Locked. | |
| linear_y_motion | No | Optional linear Y-axis motion: Free|Limited|Locked. | |
| linear_z_motion | No | Optional linear Z-axis motion: Free|Limited|Locked. | |
| physics_asset_path | Yes | /Game path to the UPhysicsAsset. |