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 judgementAlex · Sep 09, 2013 at 04:12 AM · physicsrigidbodycollider

Why does this MeshCollider think it's half as thick?

image

As you can see in the image, the object (a rigidbody) sits halfway through the floor. This happens on both sides. It's set to Convex. The mesh was created in Blender. Any ideas?

hitbox.jpg (165.5 kB)
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 syclamoth · Sep 09, 2013 at 06:07 AM 1
Share

How large is the mesh in question? Is this a problem with penetration depth in your physics settings? Also, check your normals. Could the mesh in question be inside-out?

avatar image judgementAlex · Sep 09, 2013 at 06:13 AM 0
Share

syclamoth, I wanna give you a big old checkmark. Post as an answer :)

2 Replies

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

Answer by judgementAlex · Sep 09, 2013 at 06:16 AM

An interesting effect of using the "Scale Factor" on model import, it doesn't affect penetration depth for MeshColliders. The engine thought my model was twice its actual size. I've adjusted the pen depth for now, but I'll have to go and scale down all my models to use Scale Factor = 1.

Thanks syclamoth

Comment
Add comment · Show 1 · 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 syclamoth · Sep 09, 2013 at 07:33 AM 0
Share

Well, my answer was technically correct but for a totally different reason! I didn't know about that- I usually try to keep import scale at exactly 1 in general to avoid confusion in the asset pipeline so I've never come across this before. Props for figuring out the solution anyway.

avatar image
0

Answer by Indiegangster · Sep 09, 2013 at 05:53 AM

I'm pretty sure since its convex : Convex If enabled, this Mesh Collider will collide with other Mesh Colliders. Convex Mesh Colliders are limited to 255 triangles.

Is there a special need to have this convex ... ?

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 judgementAlex · Sep 09, 2013 at 06:05 AM 0
Share

Well, if it's not flagged as convex it falls through the terrain. If convex is disabled and I have it sit on another rigidbody it still sits as pictured above.

avatar image Indiegangster · Sep 09, 2013 at 07:24 AM 0
Share

Weird I wonder if this is due to rigibody or the convex I know when I would generate my voxel terrain and try things with convex it would built the mesh completely horrible to narrow down beause the triangles.... so im wondering if it was that however are you sure that the floor its colliding with it's mesh collide r is at proper height as well?

avatar image Indiegangster · Sep 09, 2013 at 07:26 AM 0
Share

Never $$anonymous$$d I just noticed the above post I dont regulary work with mesh collide-rs the same ..... $$anonymous$$inda strange hope this gets updated further in ...

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

17 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

Related Questions

Rigidbodies won't collide if mass difference is too high 0 Answers

Guidelines for using rigidbody, collider, CharacterControllerScript, etc? 3 Answers

How to get collisions on Character controller? 1 Answer

OnCollisionEnter isnt called when player lands on object 1 Answer

Rigidbody stuck in corners of Mesh Collider 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