How to make circular ground
Instead of having a rectangular plane as my ground, I'd like to make a circle (or a cylinder). Unfortunately, the collider on the cylinder doesn't seem to work for this. How can I make a piece of circular ground?
(Kinda similar to this question)
Are you using 2D physics or 3D?
If 3D then what exactly doesn't work with cylinder? Is it large enough to collide? (if you're trying to use it as completely flat surface I suggest creating meshcollider with circle-like shape)
If 2D then you should use circle collider ins$$anonymous$$d.
Create your mesh by script, of create a circular mesh in your 3D modeling application and import it into Unity.
Answer by Owen-Reynolds · Feb 08, 2016 at 05:41 PM
Unity doesn't come with a flat circle-top 3D collider. Here are the details:
If you look at Component->Physics, you'll see Box, Sphere, Capsule, Mesh (and others.) A capsule is a cylinder with a rounded top and bottom. It turns out those first three are easy to make using only math. There's no fast easy math way to make a flat-top cylinder collider.
A Mesh collider is any shape that you make yourself, import, and then use for a collider. You have to use them for a triangle, 3D circle ... . Lots of places to read about them.
So, the answer is that the built-in cylinder starts with the capsule collider, since that's the closest one to it's shape. If that's not good enough, just remove it and add whatever collider(s) you like.
So basically, I'll have to make it in some other program and import it?
Answer by UweR7 · Feb 15, 2019 at 08:25 PM
no, take a sphere, set scale y to 0.01 and replace the standard collider with a mesh collider. done.