Omni One Unreal SDK 1.1.0
The Omni One Unreal SDK allows for games to interface with the Omni platform service.
Loading...
Searching...
No Matches
Movement

Retrieving movement data from the Omni One. More...

Classes

class  UOmniPlayerMovementComponent
 Component that handles Omni One input and automatically applies it to the attached character. More...
 

Functions

static FVector UOmniMovementFunctions::GetOmniOneMovement ()
 Get the current movement vector from the Omni One, if one is connected.
 

Function Documentation

◆ GetOmniOneMovement()

static FVector UOmniMovementFunctions::GetOmniOneMovement ( )
static

Get the current movement vector from the Omni One, if one is connected.

The direction of this vector will take the position of both the headset and the harness into account, and its magnitude will be the user's speed in cm/s. For example, if the player has both their head and torso facing forwards, and walks directly forwards at 100 cm/s, this method should return (100f, 0f, 0f). If the player then turns their head 45 degrees to the left without moving their torso or changing their walking speed, this method should return (70.7f, 70.7f, 0f), since by the headset's perspective, the player will be moving to the right of the camera view.

Returns
The velocity of the player on the Omni One im cm/s, or the zero vector if an Omni One is not connected.