Creating regular polygons with custom meshes in Unity.

Опубликовано: 22 Январь 2022
на канале: Firnox
1,774
23

The only polygons that Unity provides built-in are quads. In this video we show how we can create any n-sided regular convex polygon in Unity at runtime using a simple script.

Series: Polyhedra in Unity
Episode 1: Regular Polygons - Meshes

The second episode in the series will add in UV texture coordinates.

The source code associated with this video is available at: https://github.com/Firnox/Polyhedra/b...

Chapters:
0:00 Introduction
0:35 Polygon properties
1:05 Unity components needed
1:34 Vertex locations
3:00 Triangulation of regular polygons
4:00 Ending notes