ExplosionDef constructor

ExplosionDef({
  1. required Vector2 position,
  2. required double radius,
  3. required double impulsePerLength,
  4. double falloff = 0,
  5. int maskBits = Filter.allCategories,
})

Creates an explosion definition centered on position.

Implementation

ExplosionDef({
  required this.position,
  required this.radius,
  required this.impulsePerLength,
  this.falloff = 0,
  this.maskBits = Filter.allCategories,
});