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 mPal · Oct 19, 2011 at 11:24 AM · collisioncharacter controllerbox colliderrigid bodynot colliding

Box collider with rigid body yet enemies still pass through each other.

Very basic problem and I really hope you can help me here...

I have two cubes both with the box collider set to trigger. The trigger works fine. When triggered the enemies start following the main player. Both cubes also have character controllers. This ensures the main player does not pass through the enemies when they collide. This works fine. Both cubes also have rigid bodies set to collsion detection discrete.

I expected the rigid bodies would ensure the enemies collide with each other but they don't. They just pass right through each other. Have been at this for hours and cannot get anywhere.

Any help (in c# preferably!) would be massivley appreciated.

Comment
Add comment · Show 2
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 Tseng · Oct 19, 2011 at 02:58 PM 0
Share

Do the Enemies have Colliders attached to it (where trigger is NOT checked)? Only Colliders can well.... "collide" with each others. If your enemies only have their trigger colliders, they won't collide. Rigidbody & collisions only work with non-triggers

avatar image mPal · Oct 23, 2011 at 11:01 AM 0
Share

Resolved: Well, kind of. I was approaching it a stupid way. I was using collders as triggers, and yes, of course they won't 'collide' when set to trigger. So have used raycasts to act as triggers thus leaving the colliders as colliders. Thanks for your input Tseng.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by mPal · Oct 23, 2011 at 12:02 PM

Resolved: Well, kind of. I was approaching it a stupid way. I was using collders as triggers, and yes, of course they won't 'collide' when set to trigger. So have used raycasts to act as triggers thus leaving the colliders as colliders. Thanks for your input Tseng.

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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Does OnControllerCollider have an equivalent to OnCollisionExit? 1 Answer

Collision between Character Controller and Box Collider 2 Answers

Platform collision detection 3 Answers

Not colliding with a box collider? 2 Answers

Character Collider doesn't collide with other Colliders 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