How to get real camera position in VR mode?
I'm doing some line traces in VR which should start at the position of the camera (shifted 10 cm downwards, so I can still still the line). This is my current setup:
As you can see, this works as expected in non-VR:
In VR however, the starting position of the trace is wandering across the screen when I move the HMD in space:
(Using standalone game mode in 4.8 due to broken VR preview)
There is a new node called "enable player camera manager follow HMD". But both values (orientation/position) are already set to TRUE (which seems to be there default).
But it seems that the camera manager does indeed not give you the current camera position ?
So I was hoping, that I could just add the result of 'getOrientationAndPosition', but that doesn't help as you can see.
So here's my question: How to get the real, absolute transform (position + orientation) of the camera in VR?
Hey there spyro,
Thank you for your work! This is exactly what I need and have been looking for a while.
Just one question: exactly where is that Blueprint? I mean, which actor has it?
Thank you so much again!
answered Jun 13 '16 at 08:02 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here