How can I make a coin rigidbody without using a mesh collider

I need to have coins that collide with other coins if i use a mesh collider they won't collide with other mesh colliders, if I use a capsule collider the spherical ends react weirdly and look like a rolling ball. The capsule collider seems like it would work as long as my cylinder is tall enough but once it starts looking coinlike the capsule collider reacts strangely in the world (rolling like a sphere with a coin inside). I'd rather not use a composite collider are there any other ways to do this?

Sorry if this is obvious just starting with Unity.

Nick

I'm not looking at the docs right now, but isn't collision detection supported for convex mesh colliders with 255 triangles or fewer? If so, it seems you could in fact use mesh colliders to represent the coins.

1 Answer

1

Jesse, you are right...why didn't you put it in answer?

Make your own collision mesh with fewer than 255 triangles then be sure to mark the "Convex" checkbox on the Mesh Collider in the Inspector. Then it can collide with other Mesh Colliders.

For reference, here are the relevant docs: http://unity3d.com/support/documentation/Components/class-MeshCollider.html

I suppose I could have posted it as an answer - I just wasn't completely sure I was remembering correctly, and for whatever reason I didn't get around to looking it up :)