Jake (Lead Programmer)
Steam VR - Touch Pad Movement
This is a quick tutorial on how to move in VR with the Touch Pad. Requires the Steam VR plugin found on the unity asset store.
------------------------------------------------------------------------------------------
STEP 1
------------------------------------------------------------------------------------------
First we must enable the tracking of the Controllers and declare the tracked object that we are going to use.

------------------------------------------------------------------------------------------
STEP 2
------------------------------------------------------------------------------------------
We must declare The public Values, these will be used to determine The VR master, The RigidBody that we are going to move, the speed and the direction we are going to move.

------------------------------------------------------------------------------------------
STEP 3
------------------------------------------------------------------------------------------
Next Inside the start function we need to declare what the values above are. Declaring what the tracked object is, as well as where the rigid body can be found.

------------------------------------------------------------------------------------------
STEP 4
------------------------------------------------------------------------------------------
The next step is where we decided whats going on. The update event is where we check if the Touch pad has a finger on it, As well as the direction it is to force the PlayerMaster to move.
First we need to do some bug Prevention

Secondly we need to set the forward for the player to move. What i have done has made it so the direction that controller is pointing is the direction that the player will move. As the script was on the controller i only had to use transform instead of referencing it. This line makes sure that if the finger is all the way on top of the Touch Pad the player will move forward based on the Controller direction.

Next we do if Statements to detect where the finger is on the DPAD. First we check to see if something is on the Touch Pad with the GetTouch. Then we check where the finger is based on an X and Y grid.

The red circle is an example of how the device would detect the movement on the Touch pad based on the numbers provided.

That is all there is to it. You can put whatever your using to move, inside the If statements.