Search code examples
unity-game-engineblendermodelingmesh-collider

Collider for blender pot model inside Unity


i've made a simple pot model inside blender: such skills wow

So the idea is that after importing to unity, generating mesh collider, adding ridgin body i would like to be able to put smothing inside the pot. Now it's generating collider but without a "hole" inside, so if i throw smth inside it just bounce off the top. Is there any way to do it simple way? I'd like to avoid making a collider by hand in unity, using cubes and so...

Image overview: enter image description here


Solution

  • Your collider needs to be concave

    It isn't clear from your question how you're "generating mesh collider," but the results are clearly generating a convex collider.

    That said, some things to know about mesh colliders (and concave ones even more so): They are very compultationally heavy to calculate, so they should never...

    • move
    • scale (especially non-uniformly)
    • rotate

    ...at runtime.

    Alternatively you can use multiple box colliders in the same orientations as the side-segments of your can (along with one or two for the bottom, depending on how small of an object you'll be dropping inside).