struct in UnityEngine
Script interface for the Collision module.
粒子碰撞模块的脚本接口。
See Also: ParticleSystem, ParticleSystem.collision.
bounce | How much force is applied to each particle after a collision. 碰撞之后应用每粒子上多少力。 |
collidesWith | Control which layers this particle system collides with. 控制粒子与哪层碰撞。 |
dampen | How much speed is lost from each particle after a collision. 碰撞之后每粒子损失多少速度。 |
enabled | Enable/disable the Collision module. 启用/禁用碰撞模块。 |
enableDynamicColliders | Allow particles to collide with dynamic colliders when using world collision mode. 当使用世界碰撞模式,允许粒子动态碰撞。 |
enableInteriorCollisions | Allow particles to collide when inside colliders. 当在碰撞器内部,允许粒子碰撞。 |
lifetimeLoss | How much a particle's lifetime is reduced after a collision. 在碰撞之后粒子的生命减少多少。 |
maxCollisionShapes | The maximum number of collision shapes that will be considered for particle collisions. Excess shapes will be ignored. Terrains take priority. 约束粒子碰撞的最大碰撞图形数量。 |
maxPlaneCount | The maximum number of planes it is possible to set as colliders. 设置作为碰撞器平面的最大数量。 |
minKillSpeed | Kill particles whose speed falls below this threshold, after a collision. 碰撞之后,杀死粒子速度下降到这个阈值的粒子。 |
mode | Choose between 2D and 3D world collisions. 选择在2D或3D之间碰撞。 |
quality | Specifies the accuracy of particle collisions against colliders in the scene. 指定粒子碰撞器碰撞的精度。 |
radiusScale | A multiplier applied to the size of each particle before collisions are processed. 处理碰撞之前,应用每粒子大小的倍增器。 |
sendCollisionMessages | Send collision callback messages. 发射碰撞回调消息。 |
type | The type of particle collision to perform. 粒子的碰撞类型。 |
voxelSize | Size of voxels in the collision cache. 碰撞缓存的体素大小。 |