CreateEquilateral
Introduction
The CreateEquilateral static method is a method in the Polygon class which can be used to quickly create equilateral (same-length sides) Polygons.
Code Example
The following code creates two Polygons. One is a 4-sided polygon. The other one is a very high-vertex count Polygon which can be used to draw smooth Circles. Keep in mind that high-vertex polygons like the one created in this example can be expensive when performing collisions.
Add the following using statement:
Add the following to Initialize after initializing FlatRedBall:
Last updated