文档

Unity Engine

Unity Engine

PhysicsWorld.ExplosionDefinition

Used to define the parameters when using PhysicsWorld.Explode.
阅读时间1 分钟最后更新于 1 个月前

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.