Share via


HeadPose.ForwardDirection Property

Definition

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

Vector3 Vector3

float3

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.

Applies to