elito25
elito25

Reputation: 642

Get real time HTC Vive controller position in Unity

I am creating a game and one of the things I need is a selection reticule that drags on the Terrain on the floor. I have a function dropVecToFloor that takes in a Vector and changes the y to the terrain y at that spot. However, when I poll the controller using SteamVR_Controller.Input(index).transform.pos, it gives me a location a quarter of a second late. How could I fix this?

Upvotes: 3

Views: 5053

Answers (1)

elito25
elito25

Reputation: 642

I figured it out. If I use a SteamVR_TrackedObject, I don't get the lag that I get with SteamVR_Controller.Input(index). I don't understand the difference, but it SteamVR_Controller gives me lag.

Upvotes: 1

Related Questions