Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 659 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 659 Bytes

Pottery

Pottery is a runtime pots editor made in Unity.

How it works

A shape is created as an array of rings placed on top of each other along the Y-axis (vertically). All rings have a radius, and they share the same number of edges set in the shape. The mesh is created based on the shape's height, ring radius, and edge count. All vertices are calculated using a simple trigonometric formula where:

  • x = cos(π / faces * index)
  • y = sin(π / faces * index)
  • z = height / ringsCount * ringIndex