How to make my bowl into concave collider?

Viewed 27

i made a bowl from blender and made one of my objects into mesh of the form of the bowl.

But when the ball is in, the ball gets pushed away. There is like a wall on top of my bowl, or like there is something in my bowl. I have the bowl in mesh collider and convex.

how can I make my ball stay in the bowl?

1 Answers

You should be able to just disable the Convex setting on the Mesh Collider component and as long as your bowl is modelled correctly it will create a concave collider.

You can double check the collider is concave and not convex by disabling the Mesh Renderer temporarily in the scene view. ( see gif below )

Please note that concave colliders generated this way are usually far more complex than convex. Ideally you should create a lower resolution mesh ( as few polygons as possible ) for the collider and add that in the 'Mesh' option of the Mesh Collider component. This should in general improve performance. You'll have to find the 'sweet spot' for the complexity of the bowl collider vs performance vs physics accuracy through trial and error.

enter image description here

Related