Hi all,
I can not find the rule to convert the rotation from unity to unreal.
In unreal, I use GetActorQuat() to get the actor rotation.
I have uesd from Unity3D[x,y,z,w] to UE is [y,z,x,w].
But the rotation value in unreal is usually multiplied by a minus sign with unity.
And there are no rules in any rotation.
EX:
unity: Set Rotation Z->170
data.rotation.x: 0.000000
data.rotation.y: 0.000000
data.rotation.z: 0.996195
data.rotation.w: 0.087156
unreal: Set Rotation X->170
data.rotation.x: -0.000000
data.rotation.y: 0.000000
data.rotation.z: -0.996195
data.rotation.w: 0.087156
unity: Set Rotation Y->80
data.rotation.x: 0.000000
data.rotation.y: 0.642788
data.rotation.z: 0.000000
data.rotation.w: 0.766044
unreal: Set Rotation Z->80
data.rotation.x: -0.000000
data.rotation.y: 0.642788
data.rotation.z: 0.000000
data.rotation.w: 0.766044