Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 MichealIkruhara · Oct 29, 2013 at 07:58 PM · collidernot workingcharacter controller

Why is my character Controller NOT colliding with collisiders?

Recently, My avatar (which uses a character controller) stopped colliding with objects in my scene, and I don't understand why. I'm not exactly sure when it happened, because I noticed this while I was testing a script on a different object when the avatar passed through it. I've tried removing the new script, that fixed nothing. I've tried undoing everything else I did since last time I'm sure it worked, but its still broken. I've tested it against new colliders, so it wasn't the object itself, its the avatar. I even added a capsule collider but it still clips through everything.

Here's the avatar's inspector during gameplay;

alt text

I also noticed that it I land vertically onto an object the avatar will stand on it and not pass through, but if I hit the same object horizontally it ignores it.

This is a completely game breaking bug, what could be causing it?

inspector.png (33.3 kB)
Comment
Add comment · Show 7
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 BossGrand · Oct 29, 2013 at 08:00 PM 0
Share

Have you tried adding in a Collision component?

avatar image meat5000 ♦ · Oct 29, 2013 at 08:09 PM 0
Share

http://docs.unity3d.com/Documentation/ScriptReference/CharacterController.OnControllerColliderHit.html

http://docs.unity3d.com/Documentation/ScriptReference/ControllerColliderHit.html

avatar image MichealIkruhara · Oct 29, 2013 at 08:30 PM 0
Share

Yes, I tried adding a capsule collider. I should've said that in the question, I'll add that.

avatar image meat5000 ♦ · Oct 29, 2013 at 08:37 PM 0
Share

Character controller has a collider in it already. Use the functions I linked to register hits with a character controller.

avatar image MichealIkruhara · Oct 29, 2013 at 08:44 PM 0
Share

Those can be used to register a collision in a script, that's not what I'm trying to do. $$anonymous$$y problem is that the avatar is walking through walls and doors and other assets, ignoring the colliders on them.

The only object it isn't passing right through is terrain, but like I said for some reason it can stand on colliders but not bump into them so that's probably the only reason for that.

Show more comments

7 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by xdarned · Oct 20, 2020 at 03:03 PM

SOLVED!! Lisen, I have the same problem, Character Controller not detecting other Colliders. The problem was the #@%! LAYERS of the colliders.

Go to Edit->Project Settings->Physics. And check if the layers you are using can detect each other from the matrix.

I added two new layers, wallLayer and playerLayer and got sure that these detects each other in the physics matrix.

Comment
Add comment · Show 2 · 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 victorhs_studio · Dec 21, 2020 at 10:11 AM 0
Share

That's right!!!

I checked Default to Player and Default to Default. Then it worked! I think it changed after i Imported Unity's 3d Game Kit!

Thanks a lot.

avatar image Aeneas_Ferguson · Mar 10, 2021 at 12:09 AM 0
Share

@vdarned Thank you!

avatar image
0

Answer by gyagyagyerek · Jan 31, 2014 at 03:31 PM

I have the same problem as you. Suddenly (i don't know how and when) my Player does not colliding with other collisiders except the object right under it (it can be anything). Others like a wall or crates, etc. just don't. I don't want to check or trigger an event. I just want that the wall stops the player. It worked before! Colliders without trigger, with or without rigid body.

A few months ago i had the same problem already but somehow i solved themself. ..and now here it is again.

Are you solved the problem? Or have a workaround?

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 SkyFire56 · Feb 15, 2017 at 09:43 AM

Remove your box collider and add a rigidbody with a new box collider. That working

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 7takeo · Feb 15, 2017 at 11:52 AM

For a collision to take effect one of the two objects MUST have Rigidbody component.

Hope this help you mate.

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 AmoVires · Feb 15, 2017 at 11:52 AM

Are the objects on the same Z coord? Are they both having the same type of collider? Does the player have a rigidbody? Is layer Player 's collision enabled for the other layers?

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
  • 1
  • 2
  • ›

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.

Follow this Question

Answers Answers and Comments

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

Related Questions

RaycastHit collider not showing correct tags 1 Answer

Character controller gets stuck on stairs unity 4 scene import to unity 5 0 Answers

character controllers without collider climbing each other 0 Answers

2D collider problems 1 Answer

How to keep playing from falling off edge with placeable tiles 0 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