Vr Physics Gun
Tuesday, Aug 28, 2018 | Update at Tuesday, Feb 9, 2021

Back in 2018, I got an HTC Vive for my birthday. The following day I wanted to create something in Unity with this new VR headset, so I recreated the Physics Gun from Garry’s Mod.

This was created back before SteamVR’s 2.0.0 plugin, so it used hard-coded inputs for the picking up of the cube. However, as this was a two-day project I wasn’t trying to make something polished, just to show off a concept inside of VR. Also, all of the art was Unity’s primitives.

Looking back on this code from 2018, the code isn’t very optimised so it would be nice to come back to this idea now knowing a lot more about Unity.