Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Getting Touch Controller Velocity

yoyoguyss1yoyoguyss1 Posts: 66
Hiro Protagonist
edited December 2018 in Unity Development
Hello,

I have been trying to implement everything from the character controller and grabbing objects using touch controllers from scratch.

I have set up my player object such that when I want to rotate I rotate a parent object and not the camera itself since I have no access to it thanks to the way VR is implemented in Unity.

Now I am getting my Velocity for my Controller like this OVRInput.GetLocalControllerVelocity(RightOrLeftController) and this works fine.

But when I rotate camera and toss an object the physics works the opposite direction because I am guessing the controller velocity is relative (local) to parent object.

How do I get Controller Velocity with respect to the world and not local to an object?
Sign In or Register to comment.