Version: 2020.3
Rotation Over Lifetime 模块
External Forces 模块

Rotation By Speed 模块

在此模块中可设置粒子的旋转根据粒子速度(每秒的距离单位)变化。

Using the Rotation by Speed module

This module is part of the Particle System component. When you create a new Particle System GameObject, or add a Particle System component to an exiting GameObject, Unity adds the Rotation by Speed module to the Particle System. By default, Unity disables this module. To create a new Particle System and enable this module:

  1. Click GameObject > Effects > Particle System.
  2. In the Inspector, find the Particle System component.
  3. In the Particle System component, find the Rotation by Speed module fold-out.
  4. To the left of the fold-out header, enable the checkbox.

API

Since this module is part of the Particle System component, you access it through the ParticleSystem class. For information on how to access it and change values at runtime, see the Rotation by Speed module API documentation.

属性

For some properties in this section, you can use different modes to set their value. For information on the modes you can use, see Varying properties over time.

属性 功能
Separate Axes 为每个旋转轴独立控制旋转。
Angular Velocity 旋转速度(以度/秒为单位)。
Speed Range 大小曲线映射到的速度范围的下限和上限(超出范围的速度将映射到曲线的端点)。

详细信息

当粒子表示在地面上移动的固体对象(例如滑坡的岩石)时,可使用此属性。可根据速度按比例设置粒子的旋转,使粒子在表面上滚动的效果具有令人信服。

仅当速度处于其中一种曲线模式时才应用 Speed Range。快速的粒子将使用曲线右端的值旋转,而较慢的粒子将使用曲线左侧的值。

Rotation Over Lifetime 模块
External Forces 模块