Skip to content

πŸ«™ Pots in Unity. Shape simple pots in runtime.

License

Notifications You must be signed in to change notification settings

jasursadikov/pottery

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