Vive Touchpad Object Controller by sbtnRey - 1

InputsVR & AR

Unity script to move an object with the touchpad and control its rotation with the headset

Unknown VersionMIT LicenseUpdated 33 days agoCreated on November 12th, 2019
Go to source

Vive-touchpad-object-controller

This is a script to allow one to control the movement of an object with the touchpad on a vive controller and control the rotation of the object with the direction in which one looks.

Build instructions

Built using Unity 2019.2.8

Prerequisites

Setup

  1. Import the latest SteamVR plugin from the Unity and add the “[Camera Rig]” and “[SteamVR]” prefab to the scene.

  2. Setup a new SteamVR Input Action: Window -> SteamVR Action. Create a new action (I called mine “TouchpadTouch”), set the type to ‘vector2’ and then click “Open binding UI”. Alt text

  3. Click “Edit” for the current binding, Under “TrackPad” edit the position field and put in the vector2 “touchpadtouch” binding that was previously made and click “Save Personal Binding”. Alt text

After click “Save and Generate” in the SteamVR input menu.

  1. Finally just add the script to the object that you want to control. Alt text
Show all projects by sbtnRey