Forum Discussion
david.ishii
5 years agoExplorer
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!
Thanks!
1 Reply
Replies have been turned off for this discussion
- MikeFTrusteeA 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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device