CLASSES
TagsA - Z

PhysicsRadialExplosionEvent

Description

class PhysicsRadialExplosionEvent

Radial explosion */

Constructor

new PhysicsRadialExplosionEvent(scene)

Parameters

Name Type Description
scene Scene

Methods

getData() PhysicsRadialExplosionEventData

Returns the data related to the radial explosion event (sphere & rays).

@returns {PhysicsRadialExplosionEventData}

getImpostorForceAndContactPoint(impostor, origin, radius, strength, falloff) Nullable<PhysicsForceAndContactPoint>

Returns the force and contact point of the impostor or false, if the impostor is not affected by the force/impulse.

@returns {Nullable}

Parameters

Name Type Description
impostor PhysicsImpostor
origin Vector3
radius number
strength number

dispose(force) void

Disposes the sphere.

Parameters

Name Type Description
optional force boolean