Skip to content

sbtnRey/Vive-touchpad-object-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages