Locomotion Interactions
Updated: Aug 7, 2024
Design Guideline: Providing a comfortable locomotion experience is essential for creating immersive and enjoyable apps that allow people to engage in a world that is far bigger than the physical space they occupy. Refer to the
Locomotion Design Guide to learn about best practices and to minimize risks of user discomfort.
What are Locomotion Interactions?
Locomotion interactions let users move around a virtual space. Interaction SDK supports several types of locomotion:
teleport,
turnslide
and
step
. Teleport lets the user select a distant location in the scene and move to it instantly. Turning lets the user turn on the spot. Sliding allows the user to freely move around the virtual space while being constrained by physics such as the floor or walls, and stepping lets the user to do quick steps in any direction to easily adjust their position. To try locomotion interactions in a pre-built scene, see the
LocomotionExamples scene.
By the end of this guide, you should be able to:
- Explain what a locomotion interaction is.
- Define a teleport interaction and its components
- Define a turn interaction and its components
- Configure your scene for Sliding locomotion and its components
- Define a step interaction and its components
- Define gating in the context of locomotion and interactions.
- Identify the role of locomotion interactors in the movement system.
How do Locomotion Interactions work?
Locomotion interactions work via LocomotionEventBroadcasters and LocomotionEventHandlers.
LocomotionEventBroadcasters, such as the Teleport Interactor or the TurningEventBroadcaster, are input events that indicate if the player character be moved to an specific place in the virtual world, translate at an specified velocity, turn 90 degrees in the spot, etc.
LocomotionEventHandlers receive the events generated by the different LocomotionEventBroadcasters and apply them to the specified character ensuring that they are combined gracefully while constraining the movement so the character stays in sync with the virtual world.