在模块中可配置粒子在移动时旋转。
属性 | 功能 |
---|---|
Separate Axes | 允许根据每个轴指定旋转。启用此选项后,即可为 X、Y 和 Z 轴中的每个轴设置旋转。 |
Angular Velocity | 旋转速度(以度/秒为单位)。请参阅下文以了解更多信息。 |
当粒子表示小型实体对象(例如爆炸产生的碎片)时,此设置很有用。分配随机的旋转值将使效果比粒子在飞行时保持直立更加真实。随机旋转也有助于打破粒子形状相似的规律性(重复多次的相同纹理可能会非常明显)。
角速度选项可在默认的恒定速度基础上进行更改。速度右侧的下拉选单可提供:
属性 | 功能 |
---|---|
Constant | 粒子旋转的速度,以度/秒为单位。 |
Curve | 角速度可设定为在粒子的生命周期内变化。Inspector 底部会出现一个曲线编辑器,可用于控制粒子在整个生命周期内的速度变化情况(请参阅下图 A)。如果勾选了 Separate Axes 复选框,则可为每个 X、Y 和 Z 轴赋予曲线速度值。 |
Random Between Two Constants | 角速度属性具有两个角度,允许在它们之间旋转。 |
Random Between Two Curves | 角速度可设定为在粒子的生命周期(由曲线指定)内变化。在此模式下,两条曲线均为可编辑状态,每个粒子将在您定义的这两条曲线的范围之间选择一条随机曲线(请参阅下图 B)。 |
图 A:Z 轴角速度
图 B:两条曲线之间的角速度
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.