Version: 2022.2
言語: 日本語

CollisionModule

struct in UnityEngine

マニュアルに切り替える

説明

Script interface for the CollisionModule of a Particle System.

変数

bounce衝突した後にそれぞれのパーティクルにどれだけ力を加えるか。
bounceMultiplierA multiplier for ParticleSystem.CollisionModule.bounce.
colliderForceHow much force is applied to a Collider when hit by particles from this Particle System.
collidesWithControl which Layers this Particle System collides with.
dampenHow much speed does each particle lose after a collision.
dampenMultiplierChange the dampen multiplier.
enabledSpecifies whether the CollisionModule is enabled or disabled.
enableDynamicCollidersworld collsion mode を使用している場合、パーティクルと動的なコライダーを衝突させます。
lifetimeLossHow much a collision reduces a particle's lifetime.
lifetimeLossMultiplierChange the lifetime loss multiplier.
maxCollisionShapesThe maximum number of collision shapes Unity considers for particle collisions. It ignores excess shapes. Terrains take priority.
maxKillSpeed衝突した後に、この閾値を上回る速度のパーティクルを消去します。
minKillSpeed衝突した後に、この閾値を下回る速度のパーティクルを消去します。
mode2D と 3D 空間のどちらで衝突させるかを選びます。
multiplyColliderForceByCollisionAngleSpecifies whether the physics system considers the collision angle when it applies forces from particles to Colliders.
multiplyColliderForceByParticleSizeSpecifies whether the physics system considers particle sizes when it applies forces to Colliders.
multiplyColliderForceByParticleSpeedSpecifies whether the physics system considers particle speeds when it applies forces to Colliders.
planeCountShows the number of planes currently set as Colliders.
qualitySpecifies the accuracy of particle collisions against colliders in the Scene.
radiusScaleA multiplier that Unity applies to the size of each particle before collisions are processed.
sendCollisionMessages衝突コールバックメッセージを送ります。
type実行するパーティクルの衝突タイプ
voxelSizeコリジョンキャッシュのボクセルサイズ

Public 関数

AddPlaneAdds a collision plane to use with this Particle System.
GetPlaneGet a collision plane associated with this Particle System.
RemovePlaneRemoves a collision plane associated with this Particle System.
SetPlaneSet a collision plane to use with this Particle System.