UOculusFunctionLibrary::GetBaseRotationAndBaseOffsetInMeters

Returns current base rotation and base offset.

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](Programming/UnrealArchitecture/Reference/Functions)(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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss