rotationRandomness
Apply randomness to the Force Field axis that particles will travel around.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
public Vector2 rotationRandomness { get; set; }
Remarks
When applying rotational forces to particles, the particles will spin around the Z axis of the Force Field's Transform component by default.
Using rotationRandomness allows each particle to deviate from this default axis by the specified amount. A value of 1 allows each particle to choose a completely random axis to spin around, whereas smaller values will constrain the movement more closely to the default axis.
Additional Resources: ParticleSystemForceField