HTC Vive camera move with pawn but not rotate
I setup the VRPawn, VRController, and VRCameraManager just like the documenetations tell me. (That is, my CameraManager is "Follow HMD orientation" Checked.)
When I move VRPawn, my camera manager is carried by VRPawn's position and we can move around the scene and the HMD can rotate freely and move inside the room scale.
But when I rotate VRPawn, the Camera Manager is not affect by the VRPawn and looking direction is as if the VRPawn is not rotated.
If I change "Player Start"'s Orientation, the Camera Manager will adjust to the new orientation initially correct, but if I rotate VRPawn, it still has no effect to the CamearManager.
I have not worked with Vive but this could work: In the first person character blueprint, put an event tick, take the exec pin from Tick node and put it into "GetHMD rotation/orientation" node. Now that you have HMD roation, you need to set the same rotation to First peraon camera. Okay, so now take the exec pin from Get hmd rotation node and into "set actor rotation" now, get first person camera. Insert the reference output into "set actor rotation" and take the output rotation from "get hmd rotation" and into set actor rotation's rotation input. I am not in front of a computer but I think this could work.
answered Mar 31 '16 at 09:27 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here