Less Primitive Primitives (Unity)
A downloadable asset pack
This contains several prefabs, along with classes to help construct certain shapes. It includes cones, corkscrews, cylinders, splines, toruses, all platonic solids, and icospheres. The scripts allow you to modify things like how many polygons the models have, and whether certain pieces end in flat disks, semicircles, or are open. The spline is based around control points that can be moved around, so it can easily be modified without any amount of code.
It also includes abstract classes for sphere sweeps, surfaces of revolution, and UV surfaces. You have to implement methods to tell it what equations to follow and what resolution, but most of the details are already coded in, and there are classes that use them so you can see how it's done.
More details are in the included Readme.txt, and the code is commented as well.
Download
Install instructions
To install, unzip the folder and place it in the assets folder of whatever Unity project you want to add it to.
Leave a comment
Log in with itch.io to leave a comment.