UOculusFunctionLibrary::SetBaseRotationAndPositionOffset

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

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(BlueprintCallable, Category="OculusLibrary",
          Meta=(DeprecatedFunction, DeprecationMessage="A hack, proper camera positioning should be used"))
static 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.