set_constraint_limits
Set linear and angular limits on a physics constraint actor's UPhysicsConstraintComponent, then read back the applied motion types and values.
Instructions
Set linear/angular limits on a physics-constraint actor's UPhysicsConstraintComponent and read back. Providing a limit sets that axis to a Limited motion type with the given size (linear is shared across X/Y/Z; swing/twist are in degrees).
Returns: { constraint_actor_name: string, constraint_component: string, linear_limit: number, linear_x_motion: string, linear_y_motion: string, linear_z_motion: string, swing1_limit: number, swing1_motion: string, swing2_limit: number, swing2_motion: string, twist_limit: number, twist_motion: string, linear_applied: bool, swing1_applied: bool, swing2_applied: bool, twist_applied: bool, updated: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| twist_limit | No | Optional twist angular limit (degrees) | |
| linear_limit | No | Optional shared linear limit applied to all 3 axes (cm) | |
| swing1_limit | No | Optional swing1 angular limit (degrees) | |
| swing2_limit | No | Optional swing2 angular limit (degrees) | |
| constraint_actor_name | Yes | Label/name of the APhysicsConstraintActor. |