arcore-unity-extensions icon indicating copy to clipboard operation
arcore-unity-extensions copied to clipboard

Why Deprecate Heading?

Open mechpil0t opened this issue 3 years ago • 2 comments

Heading is super useful and seems a really logical way to place objects or find the direction the device is looking in terms of a compass heading. Why replace this with EunRotation? The docs are a bit sparse but it seems EunRotation is based on the device rotation in Unity. They seem to be doing different jobs so just wondering why replace one with the other and can we keep heading?

mechpil0t avatar Dec 13 '22 08:12 mechpil0t

EunRotation describes the orientation of a pose in 3D space. The replacement was done because the heading only makes sense from a topdown view, like a map -- but in a 3D world this makes less sense.

Heading can be computed from the EunRotation e.g. by inspecting the difference in the euler angle; 0 degrees would be north.

devbridie avatar Dec 13 '22 11:12 devbridie

so EunRotation.eulerAngles.y is our new heading?

I understand the need for a 3D pose but I think having a simple heading is convenient for placing simple guidance markers and other objects that dont need anything but the heading.

mechpil0t avatar Dec 14 '22 02:12 mechpil0t