Class ConvexPolygon

java.lang.Object
physics.collision.shape.PrimitiveShape
physics.collision.shape.ConvexPolygon

public class ConvexPolygon extends PrimitiveShape
A basic polygon shape. It does not ensure the points to be part of the convex hull, so this object may contain points for a concave shape. If that is the case, this shape won't work correctly for GJKSM collision detection.
Since:
19.06.2021
Author:
Juyas
  • Constructor Details

    • ConvexPolygon

      public ConvexPolygon(org.joml.Vector2f... relatives)