VR Game Template

[=PatimPatam;189776]
Hi ArieCrow, i had a similar problem than you in my own project… there is no seepage of data from the rift markers, what is happening is that the “Device Position” provided by the SDK is the location of the front part of the rift, which is NOT the center of rotation of your neck.

You have to get “Device Rotation”->“Get Axes”->“Break Vector” and subtract the change in height caused by the pitch rotation of your head to the “Device Position”->“Break Vector”->“Z”. It’s not perfect though, since you have to approximate using a factor which actually changes depending on the size of the head (i guess you could also approximate by using the IPD but i didn’t go that far). Still, it’s better than no correction at all!
[/]

Thanks PatimPatam :slight_smile: Thats a whole of a lot better (even with the micro slip ups). I’ll try getting into the IPD too. It’s really fun to walk freely and use your hands with the lesp motion to interact with objects. Really ads to the immersion.