Henry Nhan

Corporate Espionage Maze VR

September 2022 - September 2022

The starting room for Corporate Espionage Maze VR.

Corporate Espionage Maze VR is a virtual reality experience made in Unity where the player tries to escape the office by navigating and finding the exit.

The experience was made in three-person group and was done in two weeks. My role was to implement custom teleportation for locomotion. The only hard requirement for the experience was not to use prebuilt assets to implement teleportation. I also added physical interactions with some objects within the maze.

Game download and source code can be found on GitHub.

Highlights

Teleportation Locomotion

Implementing teleportation locomotion from scratch was a hard requirement for a group project. In order to implement teleportation, I had to look how toolkits and SDKs implemented this type of locomotion. Using the knowledge from toolkits and SDKs, I implemented teleportation locomotion by raycasting to an object, checking the object’s layer, and teleporting the player to the raycast hit’s location.

To visualize the curve teleport line, I used the Unity’s Line Renderer to generate a visual line. To curve the line, I used the projectile motion equation to get the projectile path and projectile displacement for the line’s vertices. Wikipedia article on projectile motion and YouTube video on projectile movement helped me to get the line to look like a projectile path.