- Home /
Problem with Mesh Collider - Cup
Hey guys! So I made a glass, i have nice structure to mesh collider and it's going like that:
I add rigidbody, mesh collider and add a basic structure of my cup. What I want is to drop ball into this cup. But it's stuck onto the top of them. Like that:
So my mesh is looking good, why Unity don't make a full collider? Why is closed from top? Any idea?
Is your mesh collider set to be convex? Convex colliders behaves like what you're describing.
Yes it is. I must have a convex colidier when I want have active rigidbody.
Is the cup going to move? If not, it won't need a rigidbody.
Otherwise, build it from a bunch of invisible cube colliders. The physics engine has a restriction where moving rigidbodies has to have convex colliders, and convex colliders are by nature not hollow like your cup is.
Read up on compound colliders to see how to do this. Go to this page, and scroll down to "compound colliders"
Yeah,i want the cup to "mobile".
Thanks for link, i see what i have to do.
Answer by kasztan165 · Jul 27, 2015 at 12:22 PM
Thanks for your help this is lightend few things for me. And screen to show how I implementing this:
Your answer
Follow this Question
Related Questions
In which cases Mesh Colliders they should not be used? 1 Answer
Physics sphere slows down when rolling on two wire rails like pinball machine wireform ramp 0 Answers
Compute mesh inertia tensor failed - NOT the usual problem 0 Answers
Complex Animated mesh and Colliders 1 Answer
Plane Mesh Collider doesn't stop Capsule ... sometimes. 1 Answer