velocity
The velocity of the particle, measured in units per second.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
public Vector3 velocity { get; set; }
Remarks
This velocity is used for effects that are based on physics. Examples of features that use this type of velocity are the Force module, Gravity, and Start Speed. The system stores this velocity across frames, and reapplies it to the particle position on each simulation step.
The velocity is also used by the ParticleSystemRenderer if Render Mode is set to ParticleSystemRenderMode.Stretch.
Additional Resources: ParticleSystem.Particle.animatedVelocity, ParticleSystem.Particle.totalVelocity.