get_part_orientation
Compute part orientation for Stormworks vehicles by solving desired world axes into local mount/span/axle directions, returning rotation and mirror values for XML.
Instructions
Explain local mounting/motion/function axes and solve their 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 effective rotation plus proper r/mirror for XML. Arrow signs still need game checks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | No | ||
| definition | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||