Creating a Pyramid-thingy?

Hey everyone, i'm using unity free and excuse me if this is a dumb question(i bet it is, lol) i know i can spawn cubes, cylinders, spheres and capsules but how about like a pyramid?

i can't add any triangular objects and that's bad D:

thanks..

Biohazard

1 Like

I have written a blog on how to create a tetrahedron in unity:

http://blog.nobel-joergensen.com/2010/12/25/procedural-generated-mesh-in-unity/

A tetrahedron is not quite a pyramid, but close, and it should be very easy to modify my code to a pyramid as well.

You can use a free 3D modeling program for example blender, you can creating very cool 3d objects with that program.

Wings 3d is another great 3d modelling program and it is very simple. Exports to 3ds and obj, which means exports to Unity. Create a pyramid in Wings 3d easily and then import into Unity 3d.

You can also get maya and if you are a student, for free. Maya is really good, they have tons of primitives (basic shapes like cubes, pyramids, cylinders) that you can model with just one click. Then you can save that file and drag it into unity. Blender is also a good option, but requires a bit more time to get just the basic shapes. Modeling with code I would not recommend because for most purposes it is much faster to use a 3d model from a program, then to create exactly what you are looking for from code.

there are a few primitive shapes available in unity but it doesen't mean that you can not import shapes and models to it.

use any DCC (digital content creation) tool like max, maya, blender and c4d to create any shape/model you want and import it into unity.

there is a harder but more fun way that is creating it procedurally using unity's mesh API.

For $1, this is a nice asset that covers around 43 shapes! Primitive Plus | 3D Characters | Unity Asset Store

Asset by Mike Desjardins