lolcoder
lolcoder

Reputation: 43

How to convert quaternions from UE4 to Unity3d?

UE4 and Unity3d has different coordinate systems. I am trying to convert quaternions from UE4 to Unity3d by simply remapping UE4 [x, y, z, w] -> Unity3d [x, z, -y, w]. But it seems that I am doing something completely wrong here.

Upvotes: 2

Views: 2115

Answers (2)

Stryker 777
Stryker 777

Reputation: 1

For me, the solution from UE[x,y,z,w] to Unity3D is [z,-y,x,w]. I found this via testing.

Upvotes: 0

TheSkimek
TheSkimek

Reputation: 342

From https://answers.unrealengine.com/questions/495437/convert-unreal-quaternion-to-unity.html :

Rotation around ... X is now rotation around Z ... Y is now around X ... Z is now around Y

So it should be Unity3d[z,x,y,w] right?

Upvotes: 1

Related Questions