用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:particlesystem.collisionmodule:particlesystem.collisionmodule

CollisionModule 碰撞模块

struct in UnityEngine

Description 描述

Script interface for the Collision module.

粒子碰撞模块的脚本接口。

See Also: ParticleSystem, ParticleSystem.collision.

Variables 变量

bounceHow much force is applied to each particle after a collision.
碰撞之后应用每粒子上多少力。
collidesWithControl which layers this particle system collides with.
控制粒子与哪层碰撞。
dampenHow much speed is lost from each particle after a collision.
碰撞之后每粒子损失多少速度。
enabledEnable/disable the Collision module.
启用/禁用碰撞模块。
enableDynamicCollidersAllow particles to collide with dynamic colliders when using world collision mode.
当使用世界碰撞模式,允许粒子动态碰撞。
enableInteriorCollisionsAllow particles to collide when inside colliders.
当在碰撞器内部,允许粒子碰撞。
lifetimeLossHow much a particle's lifetime is reduced after a collision.
在碰撞之后粒子的生命减少多少。
maxCollisionShapesThe maximum number of collision shapes that will be considered for particle collisions. Excess shapes will be ignored. Terrains take priority.
约束粒子碰撞的最大碰撞图形数量。
maxPlaneCountThe maximum number of planes it is possible to set as colliders.
设置作为碰撞器平面的最大数量。
minKillSpeedKill particles whose speed falls below this threshold, after a collision.
碰撞之后,杀死粒子速度下降到这个阈值的粒子。
modeChoose between 2D and 3D world collisions.
选择在2D或3D之间碰撞。
qualitySpecifies the accuracy of particle collisions against colliders in the scene.
指定粒子碰撞器碰撞的精度。
radiusScaleA multiplier applied to the size of each particle before collisions are processed.
处理碰撞之前,应用每粒子大小的倍增器。
sendCollisionMessagesSend collision callback messages.
发射碰撞回调消息。
typeThe type of particle collision to perform.
粒子的碰撞类型。
voxelSizeSize of voxels in the collision cache.
碰撞缓存的体素大小。

Public Functions 共有函数

GetPlaneGet a collision plane associated with this particle system.
获得该粒子系统相关的碰撞平面。
SetPlaneSet a collision plane to be used with this particle system.
设置用于该粒子系统的碰撞平面。
script/unityengine/classes/particlesystem.collisionmodule/particlesystem.collisionmodule.txt · 最后更改: 2016/08/02 05:25 (外部编辑)