diff --git a/Engine.Physics2D/Primitives/Shape.cs b/Engine.Physics2D/Primitives/Shape.cs index 1091856..231e114 100644 --- a/Engine.Physics2D/Primitives/Shape.cs +++ b/Engine.Physics2D/Primitives/Shape.cs @@ -7,6 +7,8 @@ namespace Syntriax.Engine.Physics2D.Primitives; public record Shape(IList Vertices) { + public Vector2D this[int index] => Vertices[index]; + public static Triangle GetSuperTriangle(Shape shape) { float minX = float.MaxValue, minY = float.MaxValue;