UOculusFunctionLibrary::SetBaseRotationAndBaseOffsetInMeters

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")
static void SetBaseRotationAndBaseOffsetInMeters
(
    FRotator Rotation,
    FVector BaseOffsetInMeters,
    EOrientPositionSelector::Type Options
)

Remarks

Sets 'base rotation' - the rotation that will be subtracted from the actual HMD orientation. Sets base position offset (in meters). The base position offset is the distance from the physical (0, 0, 0) position to current HMD position (bringing the (0, 0, 0) point to the current HMD position) Note, this vector is set by ResetPosition call; use this method with care. The axis of the vector are the same as in Unreal: X - forward, Y - right, Z - up.

Parameters

Parameter

Description

Rotation

(in) Rotator object with base rotation

BaseOffsetInMeters

(in) the vector to be set as base offset, in meters.

Options

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