Skip to content

🫙 Pots in Unity. Shape simple pots in runtime.

License

Notifications You must be signed in to change notification settings

jasursadikov/pottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🫙 Pots in Unity. Shape simple pots in runtime.

Topics

Resources

License

Stars

Watchers

Forks

Languages