c# - Convert euler angles between systems with different coordinate axis's (Unity and Threejs) -
i attempting convert euler angle rotations between unity , threejs. there 2 main issues this.
problem 1:
unity , threejs have different coordinate systems
unity:

threejs

problem 2:
unity euler math in order zxy whereas threejs defaults xyz. have found formulas on threejs side creating euler angles using different order of multiplication, know math behind can go , forth between 2 systems. not sure how different coordinate systems plays conversion math.
edit 1
i found stack overflow post converting unity quaternion threejs:
convert unity transforms three.js rotations
however, not able code work going opposite direction of threejs unity need.
problem 1:
granted minored in math believe should able straight mapping follows points:
(x, y, z) => (x, y, -z)
and should work both ways.
as far remember once convert between coordinates math should same, make sure work in 1 system or other make life easier. can export results needed.
Comments
Post a Comment