Method WalkEdges
- Namespace
- GrindFest.Generation.Common
- Assembly
- GrindFest.dll
WalkEdges(IList<Vector2>, float)
Walks each edge of the polygon, returning evenly-spaced points at intervals
of approximately segmentLength. Each result includes the world-XZ position
and the outward-facing normal (perpendicular to the edge, pointing outside).
public static IEnumerable<(Vector2 pos, Vector2 outward)> WalkEdges(IList<Vector2> poly, float segmentLength)