Stop rotating camera with HMD in Yaw Rotation axis
I am working in both C++ and blueprint to create a VR experience using the HTC Vive.
In this experience I would like the user to be able to press and hold a button on a motion controller and have that stop the rotation of the camera in the yaw axis. This is so that they can move around in a way similar to this: https://punchey.itch.io/cosmic-wandering
Most of my attempts to halt the camera from moving / rotating in any plane have failed. This was using the "Enable HMD" and "Follow Hmd Orientation" nodes. I have been able to teleport it by teleporting the pawn itself in blueprint.
At this point I am wondering if trying to stop the tracking on the headset was the correct way to go about it, it probably wasn't.
Unfortunately I have not got the project to hand so I cannot show you what I have got (yet - I intend to update this post tomorrow) but from memory:
Any help on any of my issues would be greatly appreciated.
Didn't realize there was a "reset orientation and position" blueprint node, it was exactly what I was after.
For anyone else wondering how to do it, this is in my VR_Pawn blueprint. The Wanderer Rotation is just a float created in BP and the input manager is unnecessary but I wanted to show all of how it's done. The white pipe coming into GetLGripDown is the event tick.
Now the only problem with it is that it's not blurred so it's quite sickening to use, I'm going to fix that shortly.
Also, I wasn't compensating for the offset of the headset within the chaperone, so I fixed that and added blur and now it looks like this:
Follow this question
Once you sign in you will be able to subscribe for any updates here