Develop
Develop
Select your platform

Setup Slide Locomotion

Updated: Aug 7, 2025
When using slide locomotion, the moving character collides with the world and falls to the ground. You must make sure that there are no spots they can fall through. This guide assumes you have a scene set up with a camera rig configured for smooth locomotion. If you do not have a camera rig set up, you can add one by following the instructions in the Create Comprehensive Rig guide.
Follow these steps to set up your scene to work with smooth locomotion:
  1. Place colliders on all the physical obstacles in your level and mark them with the same physics layer (such as Default).
  2. In the CharacterController, make sure the colliding layers are set to those of the obstacles. Try to avoid having grabbable objects, player colliders, and panels in the same layer to avoid undesired collisions.
  3. Also, adjust the other parameters in the CharacterController, such as the Max Slope and Max Step, to ensure the character can move up slopes and small steps but prevent it from going into steep ones.
  4. If you want to enable physically walking into hotspots, first make sure they are using collider Triggers so they won’t block the movement. Then add the Tag Set Snappable to the TeleportInteractable gameObject.

Test your Interaction

Use Link to test your project.
  1. Open the Link desktop application on your computer.
  2. Put on your headset, and, when prompted, enable Link.
  3. On your development machine, in Unity Editor, select the Play button.
  4. Use the left joystick to move around the scene, colliding with the world. The right joystick will allow you to turn. You can also crouch by pressing the right joystick down, jump with the A button, sprint by clicking the left joystick and select a hotspot under your feet with the X button.
Did you find this page helpful?