Forum Discussion
JoaquimMoreira
6 years agoHonored Guest
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
- MikeFTrusteeThis 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 :)
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 7 months ago