Motions Gestures

Telerik XR Motions package provides several predefined gestures that allow you to activate the navigation actions and move in the XR scene. This article will provide more information on the usage of these gestures. For more information on the cross-platform approach for implementing gestures mechanism by using XR Rig Tracking Space nodes, you may see Telerik XR Core documentation.

Joystick Move Gesture

This gesture allows you to execute smooth locomotion by using the joystick. You may specify whether you use the left or right hand by setting the Controller component value. Additionally, you can customize the movement in the Locomotion User Settings that are referenced in the corresponding component property.

Joystick Turn Gesture

This gesture allows you to execute a turn-around motion by using the joystick. You may specify whether you use the left or right hand by setting the Controller component value. Additionally, you can customize the movement in the Locomotion User Settings that are referenced in the corresponding component property.

Joystick Teleportation Gesture

This gesture allows you to execute a teleportation curve by using the joystick. You may specify whether you use the left or right hand by setting the Controller component value. Additionally, you can customize the movement in the Locomotion User Settings that are referenced in the corresponding component property. This gesture allows the user to:

  • Activate the teleportation curve by moving the joystick forward.

  • Move the hand while pressing the joystick to choose the teleportation target position.

  • Move the joystick around while still pressing the joystick in order to rotate the view direction of the target.

JoystickTeleportationGesture inherits from TeleportationPointerSource class, and you need to assign its reference either to a CurvedTeleportationPointer instance or to the Teleportation Pointer Sources properties section of a PointersController class. For more information on the PointersController, see the Telerik XR Core package documentation.

Hand-L Teleportation Gesture

Unlike the rest of the predefined gestures, which require a controller, this gesture allows you to teleport through hand tracking. The Hand component value of the HandLTeleportationGesture script allows you to choose the hand that will be tracked. To activate the gesture, perform the following steps:

  1. Close all fingers except the thumb and index fingers. The thumb and the index fingers will form the letter "L" which explains the name of the gesture.

  2. Move your hand so that it is well visible by the hand tracking device (for instance, the cameras of an Oculus Quest device).

At this point, the teleportation curve is activated and you can trigger the teleportation:

  1. To select the teleportation target position, move your hand around you.

  2. To execute the actual teleportation, close your index finger as if you are pressing a trigger (while still keeping the thumb open).

HandLTeleportationGesture inherits from TeleportationPointerSource class and you need to assign its reference either to a CurvedTeleportationPointer instance or to the Teleportation Pointer Sources properties section of a PointersController class. For more information on the PointersController, see the Telerik XR Core package documentation.

Telerik XR Motions does not provide hand-tracking input. One way to test the Hand-L Teleportation Gesture is to purchase one of the Telerik Assets containing the Telerik XR Interactions package which provides an Oculus Quest Hand Tracking prefab. Alternatively, you should implement the IXRRigNode interface for populating the XR Rig tracking space finger nodes with third-party input information.

Setting Up All Gestures

Telerik XR Motions provides a Motions Gestures prefab that allows you to set up quickly all predefined gestures through simple drag and drop inside the XR Rig root node. If you have purchased the Telerik XR Complete asset, then you may also consider using the Gestures prefab from the Telerik XR Integration package as it provides some additional predefined gestures related to UI and 3D objects interactions. After dragging and dropping some of these prefabs, you should take care of referencing the teleportation gestures as teleportation pointer sources as described in Hand-L Teleportation Gesture and Joystick Teleportation Gesture sections above.

In this article
Not finding the help you need?