This a simple Unity project to test out simple teleport system for google cardboard v2 for specific objects/floor with the Dark Tower from "the Dark Tower" books/movie .
Usage STEP by STEP
- Make sure your scene has a Player character with inside the Camera and choose a Teleport-able container that the user can click to teleport to.
- Add Teleport Script to your Player with the children Camera as Camera parameter
- Add V Reyecaster Script to your Camera
- Add an Event Trigger to your Teleport-able container such as terrain or floor and add a Pointer Click event with an object referring to your Player from step 1 with the TeleportRandomly function selected.
Final Scene should look like this:
If you have any problem tweet me at @giorat96.