• 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
1
Question by Drew 1 · Jul 13, 2011 at 04:05 PM · camerawallsee through

Need to stop camera from seeing through walls.

Im using the basic first person controller from standard assets. whenever I touch a wall, I can see through it. is there any way around this without increasing the skin width to such a high value that my character seems huge while walking around? thanks!

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

3 Replies

· Add your reply
  • Sort: 
avatar image
13
Best Answer

Answer by playbass06 · Jul 13, 2011 at 04:12 PM

Select the Main Camera that's part of the controller, and change its near clipping plane to 0.01 (the minimum possible value). I run into the same issue every time I use the controller, but it's an easy fix.

Comment
Add comment · Show 5 · 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 Drew 1 · Jul 13, 2011 at 04:20 PM 0
Share

Thx man worked like a charm!

avatar image Mookkeli · Nov 02, 2014 at 09:17 PM 0
Share

Thank you so much! You just make my day bit better ;)

avatar image ironclutch123 · Jul 07, 2015 at 03:26 PM 0
Share

Thank You!!

avatar image cchacon · Apr 02, 2016 at 11:30 PM 0
Share

awesome, worked for me!

avatar image UnityFan18 · Dec 28, 2016 at 12:22 AM 0
Share

Thank you so much!!!!!!!!!

I had this problem for a while, and this solution worked perfectly! Again thank you for this awesome solution!

avatar image
3

Answer by Adam_Myhill · Dec 28, 2016 at 04:15 AM

Something to note! A lot of information is calculated based on the camera's near and far clip planes.

Shadow resolution for one and it's calculated logarithmically, which means a little value on the near clip plane = a lot of value on the far clip plane. Which means ! you want to have the camera's near clip plane be as BIG as possible without causing problems.

Setting the camera's near clip plane to the smallest value will significantly decrease shadow resolution in the distance. This is one reason why it's good to switch between multiple cameras depending on the situation (each with a properly crafted near/far clip planes) to squeeze the maximum amount of useable resolution out of your shadows.

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
avatar image
0

Answer by Adil_Alhilali · May 20, 2021 at 01:23 PM

I know this answer is late now, but it also could be the fact that the surface option of the shader material render face is not set to both

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

8 People are following this question.

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

Related Questions

Ray Cast not working for camera. 1 Answer

Camera looking through objects when touching 1 Answer

Prevent camera from going through walls and meshes 1 Answer

How to make camera position relative to a specific target. 1 Answer

EDIT: I used to see through walls. 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges