• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Azaxor · Nov 20, 2013 at 04:01 PM · collisionwallmazesee through

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aldonaletto · Nov 20, 2013 at 04:52 PM 0
Share

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.

avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Detecting whether a player is touching the ground 1 Answer

Can mesh colliders be used for buildings? 1 Answer

Overlap Detection HELP!! 0 Answers

Collision problem with my AVATAR 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges