Hi…
I’m looking for a way to rotate the Controller using the HMD just like you rotate with you use Mouse in FPS.
For Standalone PC and FPS gamestyle, i used in SetupPlayerInputComponent():
PlayerInputComponent->BindAxis("MouseX", this, &APawn::AddControllerYawInput);
Then, when i use mouse x, the whole controller rotates towards the direction of mouseX… that is spectedly fine.
In VR, when i rotate head, the rotation only applies to camera but not the whole capsule…
I can imagine something like:
PlayerInputComponent->BindAxis("HMD_X", this, &APawn::AddControllerYawInput);
But I could not see anything related to HMD X, or Y just like Mouse has… so i could not find a solution for it…
The only untested thing that i could try, is to manually adjust the APawn Controller Yaw by copying the value from Camera Yaw, that implies using Tick.
Any suggestion?
Thanks.!