Develop

Set Base Rotation and Base Offset in Meters

Updated: Apr 15, 2026
This Blueprint sets the headset rotation and position offset relative to the base rotation and position, expressed in meters.

Overview

This Blueprint sets two values: the base offset and the base rotation offset.
The base offset is the translational difference between the current position of the headset and the base position, represented as an FVector that translates the headset position to the (0,0,0) point in meters. The axes of the vector are the same as for Unreal:
  • X is forward.
  • Y is right.
  • Z is up.
The base rotation offset is the rotational difference between the current rotation of the headset and the base rotation, stored as an FRotator with Roll, Pitch, and Yaw components.
When the user recenters the headset from the original center of the tracking space, the base offset is the delta from the center of the tracking space to the new center of the game space (or “world space”).
This Blueprint expresses its values in meters. In each Unreal Engine world, you can define the scale factor of the world, which scales everything in the world consistently. By default, the scale factor is 100, which means values are in centimeters instead of meters.
To read the current values, use Get Base Rotation and Base Offset in Meters.

Blueprint

Set Base Rotation and Base Offset in Meters Blueprint

C++ example

#include "OculusXRFunctionLibrary.h"

FRotator Rotation(0.f, 90.f, 0.f); // Pitch, Yaw, Roll
FVector BaseOffset(1.f, 0.f, 0.f); // 1 meter forward

UOculusXRFunctionLibrary::SetBaseRotationAndBaseOffsetInMeters(
    Rotation,
    BaseOffset,
    EOrientPositionSelector::OrientationAndPosition
);

Arguments

  • Rotation: The rotational difference between the current rotation of the headset and the base rotation you wish to apply. This value is an FRotator with the following properties:
    • Roll (X)
    • Pitch (Y)
    • Yaw (Z)
  • Base Offset in Meters: The translational difference between the current position of the headset and the base position you wish to apply. Represented as an FVector that translates the headset position into the (0,0,0) point in meters.
  • Options: An EOrientPositionSelector::Type enum value. You can select from:
    • Orientation: Applies only the rotation. The position offset is ignored.
    • Position: Applies only the base offset. The rotation is ignored.
    • OrientationAndPosition: Applies both the rotation and the position offset.

Output

  • None

See also