getPolygonVertices static method

List<Vector2> getPolygonVertices(
  1. ShapeHitbox shape
)

Implementation

static List<Vector2> getPolygonVertices(ShapeHitbox shape) {
  if (shape is PolygonComponent) {
    return (shape as PolygonComponent).absoluteVertices;
  }
  return [];
}