Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
JoaquimMoreira's avatar
JoaquimMoreira
Honored Guest
6 years ago

Does anyone know a step by step explanation of how to implement the teleport feature in Unity?

Oculus VR implementation is simply broken.. are there any alternatives that actually work on Oculus Quest?

1 Reply

  • This is such a highly requested feature but its one of the easiest things to implement on your own.
    1) Get input from controller to prompt teleport sequence (ex: hold A button)
    2) While button is down, raycast forward from the controller and return hit position
    3) On button release, transform.position = raycast.hit.position;

    The rest is just visuals.
    More info about raycasting here https://learn.unity.com/tutorial/3d-physics#5c7f8528edbc2a002053b515

    I'd highly recommend trying to learn this yourself, if you can get over these early roadblocks your abilities and skills will grow, instead of always relying on others :)