Convert coordinates between engines
port_convertConverts positions, rotations, scales, camera FOV, and physics profiles between game engines such as Godot, Unity, Unreal, and three.js to support engine ports.
Instructions
Converts positions, rotations (quaternion [x,y,z,w] or Euler degrees in the source engine's convention), scales and camera FOV between godot, godot-csharp, threejs, gltf, bevy, unity, unity-xmirror, unreal, blender. Returns target quaternion plus Euler in the target's convention (Godot rotation_degrees, Unity eulerAngles, three.js), the axis matrix and unit factor (Unreal ×100). physics:{…} adds a physics profile: gravity, fixed step, damping, friction/bounce (with each engine's combination rule), mass, speeds, jump velocity recomputed for the target gravity, and collision layers turned into Godot layer/mask bits, Rapier groups, Unreal channels or a Unity matrix — plus the settings to change and the behavioural differences to retune.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "port_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target system. | |
| fov | No | Camera FOV in degrees (vertical; horizontal for unreal). | |
| from | Yes | Source system. | |
| euler | No | Euler degrees in the source convention (godot, unity, threejs). | |
| scale | No | [x, y, z]. | |
| aspect | No | Aspect ratio for FOV conversion (default 16/9). | |
| physics | No | Physics numbers to carry over; pass {} for the profile and differences only. | |
| position | No | [x, y, z] in source units. | |
| rotation | No | Quaternion [x, y, z, w]. |