cancel
Showing results for 
Search instead for 
Did you mean: 

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

JoaquimMoreira
Honored Guest
Oculus VR implementation is simply broken.. are there any alternatives that actually work on Oculus Quest?
1 REPLY 1

MikeF
Trustee
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 🙂