Search Unity

Setting a markup/flag with the controller

Discussion in 'VR' started by KenniKure, Aug 14, 2019.

  1. KenniKure


    Aug 7, 2019

    I have made a teleporter in Unity VR. I can use the thumbstick on both controllers to move, but I use the teleport option by pressing and releasing the right trigger button.

    But is it possible to use the left controller and one of the buttons there to for example plant a flag/markup in VR? I have already created a flag, but is the a way to point at a place with a laser and trigger a button on the left controller and then plant the flag there?

    Im guessing I need to create a new gameobject inside the ovrplayercontroller, and maybe add teleport aimm visual laser, and teleport aim handler laser?