Class PhysicsRadialExplosionEvent
Hierarchy
- PhysicsRadialExplosionEvent
Index
Constructors
Methods
Constructors
constructor
Initializes a radial explosion event
Parameters
_scene: Scene
BabylonJS scene
_options: PhysicsRadialExplosionEventOptions
The options for the vortex event
Returns PhysicsRadialExplosionEvent
Methods
disposeSearch playground for dispose
Disposes the sphere.
Parameters
Optional force: boolean
Specifies if the sphere should be disposed by force
Returns void
get DataSearch playground for getData
Returns the data related to the radial explosion event (sphere).
Returns PhysicsRadialExplosionEventData
The radial explosion event data
get Impostor Hit DataSearch playground for getImpostorHitData
Returns the force and contact point of the impostor or false, if the impostor is not affected by the force/impulse.
Parameters
impostor: PhysicsImpostor
A physics imposter
origin: Vector3
the origin of the explosion
Returns Nullable<PhysicsHitData>
A physics force and contact point, or null
trigger Affected Impostors CallbackSearch playground for triggerAffectedImpostorsCallback
Triggers affected impostors callbacks
Parameters
affectedImpostorsWithData: PhysicsAffectedImpostorWithData[]
defines the list of affected impostors (including associated data)
Returns void
Represents a physics radial explosion event