Table of Contents

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

center Vector3

The centre of the explosion, in world space.

radius float

The radius within which the full impulse applies.

impulsePerArea float

The impulse per unit of facing area. Negative values implode.

falloff float

The distance beyond the radius over which the impulse fades to nothing.

filter ulong

Which shape categories are affected. Defaults to all of them.

Remarks

Only spheres, capsules and hulls respond.

Exceptions

ObjectDisposedException

The world has been disposed.