get_part_orientation
Resolve a Stormworks part’s local mounting, motion, and function axes to the rotation and mirror needed for requested world directions, returning values for edit_parts or XML.
Instructions
Explain a part's local mounting, motion and function axes and solve the rotation that points them in the requested world directions. Example Fin Rudder targets: mount_normal=[0,0,1], span_axis=[0,1,0]. Road wheel targets should include axle_axis, wheel_reference_up and wheel_forward; right placements can require mirror. Returns the effective rotation plus the proper r and mirror for edit_parts or XML. Read-only; arrow signs still need checking in game.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | No | Wanted world direction per local axis, as integer unit vectors, e.g. {"mount_normal": [0,0,1], "span_axis": [0,1,0]}; omit to see the axes and the default solution. | |
| definition | Yes | Definition id, e.g. "rudder"; find ids with search_parts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||