Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ParticleSystem.Particle.velocity

Switch to Manual
public Vector3 velocity;

Description

The velocity of the particle.

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. This velocity is remembered across frames, and will be reapplied to the particle position on each simulation step.

The velocity is also used by the ParticleSystemRenderer if Render Mode is set to ParticleSystemRenderMode.Stretch.

See Also: ParticleSystem.Particle.animatedVelocity, ParticleSystem.Particle.totalVelocity.

Did you find this page useful? Please give it a rating: