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 LennardF1989 · Apr 12, 2012 at 11:14 AM · physicsrigidbodymeshcolliderboxcollider

Problem with MeshColliders and Rigidbodies

I'm making a physics orientated game and I have run into a very annoying problem which I will try to explain the best I can. Due to a NDA I cannot comment on the type of game, so please bare with me.

I have my main physics object which is:

  • A MeshCollider set to Convex with a simplified mesh

  • A Rigidbody left at the default values

I have an object in my world which has scripted movement, it has:

  • A MeshCollider set to Convex with a simplified mesh

  • A Rigidbody set to kismetic and no gravity.

The problem is when the main physics object comes in contact with the scripted object, it goes right through it and/or will be launched.

When I remove the Rigidbody of the scripted object, the main object reacts properly, but when the main object goes to sleep, it won't be waked when the scripted object goes through it (hence I attached a rigidbody). When I replace the MeshCollider of the scripted object with a BoxCollider and leave the Rigidbody set to Kismetic, everything works as I expect it to, except for the collision being square (obviously).

Did I miss a setting somewhere? Why doesn't it work as I set it up initially, but it does when I replace the MeshCollider? It took me ages to find the proper scales and physics settings which feel right for the game I'm making and it's only this particular case that goes wrong.

EDIT: The simplified meshes of both objects is far below the maximum of 255 tris.

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

1 Reply

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

Answer by LennardF1989 · Apr 12, 2012 at 01:32 PM

Fixed it myself, apparantly it was caused by how I was moving my object.

I updated the code to use rigidbody.MovePosition(_currentPosition); inside public void FixedUpdate() and now it all works flawless!

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

Adding real life physics behavior on 3-d object. 1 Answer

Moving Trigger not detecting stationary MeshCollider 0 Answers

Box Collider z Axis unwanted reset 5 Answers

Rigidbody slowly falling through mesh collider 0 Answers

Why do I get OnTriggerExit upon collision when a rigidbody is kinematic? (example) 3 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