Method Explode
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Explode(Vector3, float, float, float, ulong)
Applies a radial impulse to every shape within reach, scaled by how much of each shape faces the blast.
public void Explode(Vector3 center, float radius, float impulsePerArea, float falloff = 0, ulong filter = 18446744073709551615)Parameters
centerVector3-
The centre of the explosion, in world space.
radiusfloat-
The radius within which the full impulse applies.
impulsePerAreafloat-
The impulse per unit of facing area. Negative values implode.
fallofffloat-
The distance beyond the radius over which the impulse fades to nothing.
filterulong-
Which shape categories are affected. Defaults to all of them.
Remarks
Only spheres, capsules and hulls respond.
Exceptions
- ObjectDisposedException
-
The world has been disposed.