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
1
Question by Mobius42 · Jan 15, 2012 at 01:59 AM · collisioncollidersdetectioncollide

I can't get ANY simple collision to work!

I just started using unity recently and I have watched all the 'getting started' tutorials. My problem is, I simply can't get ANYTHING to collide... I'm using Unity 3.4.2f3 on windows 7.

All I do is insert a simple plane object with [mesh collider], then a cube with a [box collider] and [rigid body]. I put the cube above the plane, hit play, and it falls right through.

In addition I have tried making the mesh collider convex, tried different combinations of colliders with one another (including convex mesh collider on both objects), tried making the plane static, etc.... What in the world am I missing here?

I really want to learn this program, but if I can't even figure this out... lol. I looked at all of the components attached to the objects in the tutorial video on cgcookie.com "Unity: Intro to User Interface Part 2" and everything seems to be identical, yet here I am... Somebody please help me!!! xD

edit: I tried applying [rigid body] to both objects and using different combinations of colliders with that as well (including checking and unchecking kinematic on both)... still has fallen through every time.

edit: Also, all the collision detection with the Bootcamp demo works just fine.

Comment
Add comment · Show 5
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 Kryptos · Jan 15, 2012 at 02:11 AM 0
Share

Did you check that the layer of your objects are set to collide within the PhysX engins? See: http://unity3d.com/support/documentation/Components/Layer%20Based%20Collision%20detection.html

avatar image Kryptos · Jan 15, 2012 at 02:19 AM 1
Share

I just did a simple scene with a plane (GameObject->Create Other->Plane) and a cube (GameObject->Create Other->Plane). I added a rigidbody to the cube and hit Start. And it works just fine.

avatar image Mobius42 · Jan 15, 2012 at 02:45 AM 0
Share

That's exactly what it was. Thank you thank you!! ;D

avatar image Bunny83 · Jan 15, 2012 at 03:09 AM 0
Share

@$$anonymous$$obius42: Uhmm, wasn't that exactly what you've done already? At least that's what you've said in your question. Now you said "that's what is was". I don't get it...

avatar image Mobius42 · Jan 15, 2012 at 08:03 AM 0
Share

@Bunny83

$$anonymous$$ryptos said: "Did you check that the layer of your objects are set to collide within the PhysX engins? See: http://unity3d.com/support/documentation/Components/Layer%20Based%20Collision%20detection.html"

$$anonymous$$y layer settings WERE messed up. That's exactly what the problem was. Thx again! :D

3 Replies

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

Answer by Bunny83 · Jan 15, 2012 at 02:04 AM

Never had such an issue. Make sure:

  • the objects arent parented to each other.

  • you didn't set some strange settings in the collision matrix in the physics settings.

  • moving objects with rigidbody have either primitive collider(box, sphere, capsule) or a convex meshcollider

  • you don't directly move the object "manually" by setting the transform.position.

Comment
Add comment · Show 3 · 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 Mobius42 · Jan 15, 2012 at 03:03 AM 0
Share

Thanks for the response. I'll double check all those things right now.

avatar image Bunny83 · Jan 15, 2012 at 03:05 AM 0
Share

@$$anonymous$$obius42: Don't use the Answer function to comment on other posts. Answers should only be used to answer the question. I've converted your answer into a comment.

avatar image Mobius42 · Jan 15, 2012 at 08:04 AM 0
Share

@Bunny83: Sorry, first time poster. I noticed what I had done after I already clicked submit hehe. Thank YOU as well, I didn't realize the collision matrix settings you referred to was the same thing kryptos was talking about.

avatar image
0

Answer by Meltdown · Jan 15, 2012 at 08:33 AM

Don't use a plane with a mesh collider. Remove the mesh collider from it and add a box collider to it. I've had numerous issues with mesh collider collisions you should try use a box collider where possible.

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 ETGgames · Jul 17, 2015 at 12:26 PM

Try increasing the size of the collider you are using

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

8 People are following this question.

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

Related Questions

Multiple Cars not working 1 Answer

Precise Collision Detection 0 Answers

Problem with acing problems with : OnTriggerEnter 0 Answers

On Collision, Create a Cube? 1 Answer

How To: One collider for detection; one for collision. 1 Answer


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