Showing results for 
Search instead for 
Did you mean: 

Control acceleration/deceleration based on the position of the controllers from the players body

Level 3
Hi, I was wondering if anyone could point me in the right direction for trying to implement these controls in Unity. For example if I were to control a car, the car would accelerate when the player extends their arms, and decelerate when the pull their arms closer to their body.


Level 10
A starting point would be to track the forward axis delta between the hmd and the controllers. Set a min and max distance range for your acceleration then feed in your normalized data.

You will have to average the controller distance if you want both of them to be used for determining the acceleration value so to simplify maybe just start with one controller in relation to the hmd