Now the player could move and attack, i decided to create a script that allows the player to shoot a laser that will be able to move an object from afar, this script has already been created by me during a different Virtual Reality project and to create this script you need to utilise the Laser system already implemented in the SteamVR plugin and access the object at the very end of the laser in order to move it, to do this several events have to be passed through in order to detect collision for the laser and afterwards the laser will be allowed to move the object when a certain button is pressed and held. However i decided to add the ability to also pull the same object using the other hand, which allows the player pull the object by setting a translate function to teleport to the players hand instead of keeping the objects location
One thought on “Laser pointer System”