It is very common in VR applications to limit teleportation to only specific predefined locations within the scene. In that case, you would not need any free-roaming glide locomotion or arbitrary teleportation targets. Instead, you can define the specific teleportation spawn points. Let's see how to do this.
First, let's create a TeleportSpawn prefab to mark our locations:
- In Hierarchy, create a 3D Sphere and name it TeleportSpawn
- Reset its transform (gear icon | Reset)
- Set its Scale to 0.4, 0.4, 0.4
- Set its Position to something like (2, 0, 3)
- Create a new layer named TeleportSpawn from Inspector | Layers | Add Layer and fill in the name in an empty slot
- Select the TeleportSpawn object in Hierarchy again, and now set ...