Documentation

Unity Engine


Unity Engine


PhysicsWorld.ExplosionDefinition

Used to define the parameters when using PhysicsWorld.Explode.
Read time 1 minuteLast updated a month ago

Definition

public struct PhysicsWorld.ExplosionDefinition

Constructors

Constructor

Description

ExplosionDefinition()Create a default explode definition.

Properties

Property

Description

falloffThe falloff distance beyond the radius. Impulse is reduced to zero at this distance.
hitCategoriesThe categories that will produce hits.
impulsePerLengthImpulse per unit length. This applies an impulse according to the shape perimeter that is facing the explosion. Explosions only apply to circles, capsules, and polygons. This may be negative for implosions.
positionThe center of the explosion in world space.
radiusThe radius of the explosion.

Static Properties

Property

Description

defaultDefinitionCreate a default explode definition.