UOculusFunctionLibrary::GetRawSensorData

Reports raw sensor data. If HMD doesn't support any of the parameters then it will be set to zero.

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(BlueprintPure, Category="OculusLibrary")
static void GetRawSensorData
(
    FVector & AngularAcceleration,
    FVector & LinearAcceleration,
    FVector & AngularVelocity,
    FVector & LinearVelocity,
    float & TimeInSeconds,
    ETrackedDeviceType DeviceType
)

Remarks

Reports raw sensor data. If HMD doesn't support any of the parameters then it will be set to zero.

Parameters

Parameter

Description

AngularAcceleration

(out) Angular acceleration in radians per second per second.

LinearAcceleration

(out) Acceleration in meters per second per second.

AngularVelocity

(out) Angular velocity in radians per second.

LinearVelocity

(out) Velocity in meters per second.

TimeInSeconds

(out) Time when the reported IMU reading took place, in seconds.