- Home /
FPController see through walls problem
Hey there.
I am working on a horror game which includes a maze with walls. The walls are made of cubes and have colliders
i get this problem everywhere and i cant figure out whats wrong. Had a older project and no probs there. It only happens when the FPC is looking at wall and turning sides but it ruins the maze idea :P
Here is my problem http://tinypic.com/view.php?pic=2j4pqns&s=5#.UozOutIjLRU
Help much appreciated im sure its a easy fix.
Answer by sambickley · Nov 20, 2013 at 04:36 PM
This is an issue with the Camera.nearClipPlane.
Either lower this value on your player camera, or else add a buffer of space around your character (via a collider) that means you can't get so close to the walls.
This happens when the camera's near plane extends outside the character collider. Reducing a little the near plane is a solution, but may cause Z-fighting at distance (the contour of far meshes that intersect each other may flicker crazily). The other solution is to increase the character collider radius from 0.4 to 0.5, but this makes the character fatter, thus some narrow doors may block it. $$anonymous$$ixing the two solutions may solve both cases.
Answer by Azaxor · Nov 20, 2013 at 05:24 PM
Awesome thanks alot it was driving me insane that this small issue occured. i took clippin plane down to 0.2 from 0.3 and its perfect now :) cheers
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Overlap Detection HELP!! 0 Answers
Collision problem with my AVATAR 0 Answers
Going through walls help! 1 Answer
I made a better shader how do i fix[add _Shadow Strength]help???>Sorry that im asking for to much 1 Answer