Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

SteamVR Input - Toggle pickup

Discussion in 'AR/VR (XR) Discussion' started by redeyemaniac, Jul 23, 2019.

  1. redeyemaniac

    redeyemaniac

    Joined:
    Nov 15, 2013
    Posts:
    13
    I have created a scene in Unity with the SteamVR plugin. It has basic teleportation and throwable cubes (just the basic prefab stuff).

    I want to now add a sword that the player can pick up. The way the throwable cubes work is that they are picked up on the trigger press and released on the trigger release.

    How do I set up the sword to pick up on a grab press, then release on a second grab press.

    Further, how do I set a custom anchor point for the sword (so that it is held correctly at the hilt, and faces the correct direction.

    Thank you
     
  2. LForward1

    LForward1

    Joined:
    Jul 22, 2019
    Posts:
    12
    Can you tell me if you want it to do in VR or just at a simple PC game?
     
  3. redeyemaniac

    redeyemaniac

    Joined:
    Nov 15, 2013
    Posts:
    13
    In VR, I would like the grip button on the Vive Controller to be the input