返回介绍

CollisionModule 碰撞模块

发布于 2019-12-18 15:38:11 字数 4678 浏览 1036 评论 0 收藏 0

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.
设置用于该粒子系统的碰撞平面。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文