IOculusHMDModule::SetBaseRotationAndPositionOffset

Sets 'base rotation' - the rotation that will be subtracted from the actual HMD orientation.

Windows
MacOS
Linux

References

Module

OculusHMD

Header

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

Include

#include "IOculusHMDModule.h"

Syntax

void SetBaseRotationAndPositionOffset
(
    FRotator BaseRot,
    FVector PosOffset,
    EOrientPositionSelector::Type Options
)

Remarks

Sets 'base rotation' - the rotation that will be subtracted from the actual HMD orientation. The position offset might be added to current HMD position, effectively moving the virtual camera by the specified offset. The addition occurs after the HMD orientation and position are applied.

Parameters

Parameter

Description

BaseRot

(in) Rotator object with base rotation

PosOffset

(in) the vector to be added to HMD position.

Options

(in) specifies either position, orientation or both should be set.

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