Skip to main content
New Participant
February 6, 2020

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

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.

Thanks!
This topic has been closed for replies.

1 reply

Inspiring
February 9, 2020
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