HeadPose.ForwardDirection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the forward direction of the user's head gaze in the specified coordinate system, as a unit vector.
public:
property float3 ForwardDirection { float3 get(); };
float3 ForwardDirection();
public Vector3 ForwardDirection { get; }
var vector3 = headPose.forwardDirection;
Public ReadOnly Property ForwardDirection As Vector3
Property Value
The forward direction unit vector.
Remarks
[!NOTE] On most Windows Mixed Reality devices, the forward direction vector is parallel to the ground when the user's head is in a neutral position looking forward. However, earlier versions of HoloLens 2 aligned the vector to be perpendicular to the display panels instead, which is tilted downward a few degrees relative to the ideal orientation. Newer versions of HoloLens 2 have corrected this to ensure semantic consistency across form factors.