Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/UHeadMountedDisplayFunctionLibra-
References
| Module | XRBase |
| Header | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/HeadMountedDisplayFunctionLibrary.h |
| Include | #include "HeadMountedDisplayFunctionLibrary.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/HeadMountedDisplayFunctionLibrary.cpp |
UFUNCTION&40;BlueprintPure, Category&61;"Input&124;HeadMountedDisplay",
Meta&61;&40;DeprecatedFunction, DeprecationMessage&61;"Use new GetTrackingSensorParameters &47; GetNumOfTrackingSensors"&41;&41;
static void GetPositionalTrackingCameraParameters
&40;
FVector & CameraOrigin,
FRotator & CameraRotation,
float & HFOV,
float & VFOV,
float & CameraDistance,
float & NearPlane,
float & FarPlane
&41;
Remarks
If the HMD has a positional sensor, this will return the game-world location of it, as well as the parameters for the bounding region of tracking. This allows an in-game representation of the legal positional tracking range. All values will be zeroed if the sensor is not available or the HMD does not support it.
Parameters
| Name | Description |
|---|---|
| Origin | (out) Origin, in world-space, of the sensor |
| Rotation | (out) Rotation, in world-space, of the sensor |
| HFOV | (out) Field-of-view, horizontal, in degrees, of the valid tracking zone of the sensor |
| VFOV | (out) Field-of-view, vertical, in degrees, of the valid tracking zone of the sensor |
| CameraDistance | (out) Nominal distance to sensor, in world-space |
| NearPlane | (out) Near plane distance of the tracking volume, in world-space |
| FarPlane | (out) Far plane distance of the tracking volume, in world-space |