The VR escape room game project - part 3
The puzzles in the escape room are all in a different scene, but they all use the same garage as location. Whenever the players complete a puzzle, the scene is changed and they are presented with the next puzzle. This is achieved by calling the SceneManager.LoadScene() method. The player can also teleport or use snap turns instead of walking around, making it easier to explore the whole room, even if you don't have enough space in real life or want to stay stationary. This is achieved by the Locomotion System under XR Origin, which has 3 scripts: Locomotion System, Teleportation Provider and Snap Turn Provider. On both controllers, there is an XR Ray Interactor and XR Interactor Line Visual script which show a line coming from the controllers to help players visualize where they want to move. The floor is set as the Teleportation Area, so players can only teleport within the room. Locomotion System Scripts Controller Scripts and components Puzzle 1 - Buttons: In this p...