UOculusFunctionLibrary::GetBaseRotationAndBaseOffsetInMeters

Returns current base rotation and base offset.

Choose your operating system:

Windows

macOS

Linux

References

Module

OculusHMD

Header

/Engine/Plugins/Runtime/Oculus/OculusVR/Source/OculusHMD/Public/OculusFunctionLibrary.h

Include

#include "OculusFunctionLibrary.h"

Source

/Engine/Plugins/Runtime/Oculus/OculusVR/Source/OculusHMD/Private/OculusFunctionLibrary.cpp

Syntax

UFUNCTION(BlueprintPure, Category="OculusLibrary")
static void GetBaseRotationAndBaseOffsetInMeters
(
    FRotator & OutRotation,
    FVector & OutBaseOffsetInMeters
)

Remarks

Returns current base rotation and base offset. The base offset is currently used base position offset, previously set by the ResetPosition or SetBasePositionOffset calls. It represents a vector that translates the HMD's position into (0,0,0) point, in meters. The axis of the vector are the same as in Unreal: X - forward, Y - right, Z - up.

Parameters

Parameter

Description

OutRotation

(out) Rotator object with base rotation

OutBaseOffsetInMeters

(out) base position offset, vector, in meters.