HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
The explosion definition is used to configure options for explosions. Explosions consider shape geometry when computing the impulse. More...
Public Member Functions | |
ExplosionDef () | |
Creates a new explosion definition with the default values. | |
ExplosionDef (ulong maskBits, Vec2 position, float radius, float falloff, float impulsePerLength) | |
Creates a new explosion definition with the specified values. | |
The explosion definition is used to configure options for explosions. Explosions consider shape geometry when computing the impulse.
|
inline |
Creates a new explosion definition with the specified values.
maskBits | Mask bits to filter shapes |
position | The center of the explosion in world space |
radius | The radius of the explosion |
falloff | The falloff distance beyond the radius. Impulse is reduced to zero at this distance. |
impulsePerLength | Impulse per unit length. This applies an impulse according to the shape perimeter that is facing the explosion. Explosions only apply to circles, capsules, and polygons. This may be negative for implosions. |