Set Base Rotation and Base Offset in Meters

Specifies the current rotation and position of the headset, with respect to the base rotation and position, expressed in apparent meters.

Overview

The base offset is the translational difference between the current position of the headset and the base position, which can be read by using Get Base Rotation and Base Offset in Meters. It is expressed as an FVector construct that translates the headset position into 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.

Similarly, the base rotation offset is the rotational difference between the current rotation of the headset and the base rotation, which can be read by using Get Base Rotation and Base Offset in Meters. It is expressed as an FRotator construct with properties Pitch, Roll, and Yaw.

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 UE4 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 expressed in centimeters instead of meters. But you can use any scale factor you wish, for example when loading splash screens.

Blueprint

Arguments

  • Rotation: The rotational difference between the current rotation of the headset and the base rotation, that you wish to apply. It is expressed as an FRotator construct with the 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, that you wish to apply. It is expressed as an FVector construct that translates the headset position into the (0,0,0) point, in meters.
  • Options: Specifies what you wish to set: the orientation (rotation), the position (base offset), or both the orientation and the position.

Output

  • No output.