set_physics_asset_constraint_drives
Set a UPhysicsAsset constraint's linear and angular motor drives, break thresholds, and projection settings to define how the joint behaves beyond its limits; changes persist in the asset.
Instructions
Set a UPhysicsAsset constraint's drives (linear + angular motors), breakable thresholds, and projection — the "behavior beyond limits" (read-modify-write; only provided fields change; idempotent set-to-fixed-value). Authoring-only: the values persist into the asset (the live motor effect is observed in PIE/sim).
Returns: { physics_asset_path: string, constraint_name: string, constraint_index: int, applied_count: int, angular_drive_spring: float, angular_drive_damping: float, angular_drive_force_limit: float, angular_orientation_target: [float], linear_drive_spring: float, linear_drive_damping: float, linear_drive_force_limit: float, linear_position_target: [float], projection_linear_alpha: float, projection_angular_alpha: float, projection_linear_tolerance: float, projection_angular_tolerance: float, saved: bool, save_error?: string, constraint: object }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| constraint_name | Yes | Name (JointName) of the constraint to edit (see get_physics_asset_info). | |
| linear_breakable | No | Optional: the joint can break under linear force. | |
| parent_dominates | No | Optional: the parent body is unaffected by the child's motion. | |
| angular_breakable | No | Optional: the joint can break under angular force. | |
| angular_drive_mode | No | Optional angular drive mode: SLERP|TwistAndSwing. | |
| physics_asset_path | Yes | /Game path to the UPhysicsAsset. | |
| projection_enabled | No | Optional: enable projection (post-solve position/angle fixup). | |
| linear_drive_spring | No | Optional linear drive spring/stiffness. | |
| angular_drive_spring | No | Optional angular drive spring/stiffness. | |
| linear_drive_damping | No | Optional linear drive damping. | |
| angular_drive_damping | No | Optional angular drive damping. | |
| linear_position_drive | No | Optional: enable the linear position drive (applied to all 3 axes). | |
| linear_velocity_drive | No | Optional: enable the linear velocity drive (all 3 axes). | |
| angular_velocity_drive | No | Optional: enable the angular velocity drive. | |
| linear_break_threshold | No | Optional linear break force threshold. | |
| linear_position_target | No | Optional [x, y, z] target position. | |
| angular_break_threshold | No | Optional angular break torque threshold. | |
| projection_linear_alpha | No | Optional semi-physical linear projection alpha [0..1]. | |
| linear_drive_force_limit | No | Optional linear drive force limit (0 = unlimited). | |
| projection_angular_alpha | No | Optional semi-physical angular projection alpha [0..1]. | |
| angular_drive_force_limit | No | Optional angular drive force/torque limit (0 = unlimited). | |
| angular_orientation_drive | No | Optional: enable the angular orientation (position) drive. | |
| angular_orientation_target | No | Optional [pitch, yaw, roll] target orientation in degrees. | |
| projection_linear_tolerance | No | Optional projection linear tolerance. | |
| projection_angular_tolerance | No | Optional projection angular tolerance in degrees. |