API

Class PhysicsRadialExplosionEventOptions

Options for the radial explosion event

Index
affectedBodiesCallback: (
    affectedBodiesWithData: PhysicsAffectedBodyWithData[],
) => void

Callback that is triggered when the radial explosion affects bodies.

affectedImpostorsCallback: (
    affectedImpostorsWithData: PhysicsAffectedImpostorWithData[],
) => void

Callback that is triggered when the radial explosion affects impostors.

falloff: PhysicsRadialImpulseFalloff = PhysicsRadialImpulseFalloff.Constant

The strength of the force in correspondence to the distance of the affected object

radius: number = 5

The radius of the sphere for the radial explosion.

sphere: { diameter: number; segments: number } = ...

Sphere options for the radial explosion.

strength: number = 10

The strength of the explosion.