Explosion Def
constructor(position: Vec2 = Vec2.Zero, radius: Float = 1.0f, falloff: Float = 1.0f, impulsePerLength: Float = 1.0f, maskBits: ULong = B2_DEFAULT_MASK_BITS)
Parameters
position
The center of the explosion in world coordinates
radius
The maximum radius of the explosion
falloff
The falloff radius. Beyond this distance the impulse decreases linearly to zero at radius.
impulse Per Length
The impulse magnitude per unit length, usually in kg*m/s
mask Bits
Collision mask bits to filter which shapes are affected