Gist bdb66899015ed6b7ab9d04034580909a
✓ Published0🌍 Public
Aandybak
Last edited Aug 21, 2020
Created on Aug 21, 2020
This example procedurally generates 3D spaceship models using the Conway polyhedron and Johnson solid libraries in Unity. The code builds a base prism, then applies random operations—lofting, lacing, truncating, and adding wings or engines—across multiple sections to create varied ship silhouettes. It uses Unity’s `MeshFilter`, `MeshRenderer`, and `Random` APIs to construct and display the final mesh, with adjustable parameters like nose length, sharpness, and segment complexity. The generator runs automatically on validation and exposes seed-based randomness for reproducible variations.
AI-generated description