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.

How to move player by grabbing world space?

tobitokamaktobitokamak Posts: 1


I'm trying to code a locomotion system similar to Lone Echo/Sprint Vector, but it's my first time using Unity's XR Toolkit on the Rift S (also I'm still learning to code).

The mechanic: user keeps a button down and then drags the world to move.

My code works to bind the controller position to the world but the player sort of blinks to a spot right after pressing the button and before you've dragged.

Two days and I honestly have no idea. Idk if it's an XR Toolkit/ OVR type of conflict (i tried using the OVRPlayer Controller instead of XRRig, but same thing happens. I've also wondered if it's something about rigidbodies but i tried adding and moving a rb and same thing.

Player XRRig gameobject hierarchy is the same as default.

Code is here>

pastebin com / XaC9L5y5

Any help will lead you closer to nirvana or heaven or whatever.

also, if u know how to do this with OVR i can use any.


Sign In or Register to comment.