Ramgg
Ramgg

Reputation: 63

Threejs rotation from right-handed system to left-handed system unity3d

I'm getting Euler angle value from Threejs to unity3d. But im facing problem those are not working good. Because Unity3D is left handed with +z, but Threejs is right handed coordinates with -z.

How can solve this problem. can any one you give the suggestions.

Upvotes: 4

Views: 685

Answers (1)

Cambesa
Cambesa

Reputation: 456

You can solve this by inverting the Y rotation. If you also want to convert the position, invert the X axis

yRotationUnity=-yRotationThreeJS;
xUnity=-xThreeJS;

Upvotes: 2

Related Questions