VR Spectator Camera going through Walls

Alright I’m working on an asymmetrical VR game that is basically like hide and seek. The only problem is that the robot (pc player) can easily go through walls and the lighting is super weird. In Vr the lighting looks fine but the robot is having issues which is getting quite annoying. I’ve tried adding a sphere collision on the robot but so far the robot still can go through walls. On all my walls I added the “block all” collision setting but still nothing.

My camera works through a Render Target with another camera in the VR template because Unreal apparently has a hard time having 2 players on one machine, one being VR. So I just have 1 player and 1 camera which is controlled by the mouse and keyboard and can shoot projectiles at the VR player. The camera has a static mesh which is my robot I 3D modeled in blender and is slightly behind the camera so that the camera doesn’t see the insides of it. I’m using this tutorial as a way of using the camera and the VR player at once:

Any ideas? Also the lighting on the camera is a bit weird too because everything that has a point light or an emission parameter on in the materials blueprint doesn’t really show, yet the reflections due. Kind of strange…

Hi Brysonian10

Your “VR Camera” should work the same way as every other pawn type. Ensure the static mesh component you have attached has collisions enabled and configured correctly to collide with your geometry, otherwise add a collision object.

As the lighting issues. 2DCaptureComponent will not render settings applied through your post-processing volume. I myself work with 2DCaptureComponents to track VR users quite often, and it is a huge pain. The best thing you can do is alter the gamma settings on the component or reduce any post-processing effects until you get a fairly even balance. I’m afraid I have not been able to find a solid solution and I do not think there is.

If you are still having collision problems with your VR camera, could you post some information regarding the type of object it is, how it is set up and how it is spawned/handled in the world?

Hope this helps.

Good luck!.