Class PhysicsRadialExplosionEvent
Hierarchy
- PhysicsRadialExplosionEvent
Index
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 Body Hit DataSearch playground for getBodyHitData
Returns the force and contact point of the body or false, if the body is not affected by the force/impulse.
Parameters
body: PhysicsBody
A physics body
origin: Vector3
the origin of the explosion
data: PhysicsHitData
Returns boolean
A physics force and contact point, or null
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
data: PhysicsHitData
Returns boolean
A physics force and contact point, or null
trigger Affected Bodies CallbackSearch playground for triggerAffectedBodiesCallback
Triggers affected bodies callbacks
Parameters
affectedBodiesWithData: PhysicsAffectedBodyWithData[]
defines the list of affected bodies (including associated data)
Returns void
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