PolygonHitbox constructor

PolygonHitbox(
  1. List<Vector2> vertices, {
  2. Vector2? position,
  3. double? angle,
  4. Anchor? anchor,
  5. bool isSolid = false,
  6. CollisionType collisionType = CollisionType.active,
})

Implementation

PolygonHitbox(
  super.vertices, {
  super.position,
  super.angle,
  super.anchor,
  bool isSolid = false,
  CollisionType collisionType = CollisionType.active,
}) {
  this.isSolid = isSolid;
  this.collisionType = collisionType;
}