How to create a pyramid?

I am attempting to create a pyramid which I can attach the point at the origin and rotate the base vertically, does anyone know how to accomplish this? I was using the rectangularSensor but that is no longer an option