CircleHitbox constructor

CircleHitbox({
  1. double? radius,
  2. Vector2? position,
  3. double? angle,
  4. Anchor? anchor,
  5. bool isSolid = false,
  6. CollisionType collisionType = CollisionType.active,
})

Implementation

CircleHitbox({
  super.radius,
  super.position,
  super.angle,
  super.anchor,
  bool isSolid = false,
  CollisionType collisionType = CollisionType.active,
}) : shouldFillParent = radius == null && position == null {
  this.isSolid = isSolid;
  this.collisionType = collisionType;
}