IOculusHMDModule::SetBaseRotationAndBaseOffsetInMeters

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 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.

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