I’m making a VR space station simulator and there I have zero gravity, so instead of a usual movement I just fly
I’m trying to set up turn setting using locomotion system by applying right hand thumbstick. It turns left and right, but I cannot find any information on how to make it turn up and down. I tried to change bindings in XRI Default Input Actions, but it doesnt work. Is there some way to do it?
Hi @Ten_Au. We don’t support this out of the box, but you could build on top of our locomotion framework to achieve this. I haven’t tested this myself, but in theory you could duplicate our ContinuousTurnProvider and make a ContinuousPitchProvider. You would then need to make a new XRBodyPitchRotation class to replace XRBodyYawRotation. In your new XRBodyPitchRotation.Apply method, you would want to replace origin.up with origin.right when you call origin.RotateAround.
Please note, I believe character controller may always stay vertically oriented, so you may need to handle that by adjusting the height/radius or remove the character controller and handle collisions another way.