Search Unity

Particle System and random velocity

Discussion in 'Scripting' started by Metron, Sep 5, 2011.

  1. Metron

    Metron

    Joined:
    Aug 24, 2009
    Posts:
    1,137
    Hello everyone,

    is it possible to restrict the random particle velocity to only use one direction on the X-axis?

    When setting the value to 20 the particles velocity seems actually to be between -20 and 20 (since half of the particles flies along negative X axis while the other half flies along X axis).

    Thanks for your help.
     
  2. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,572
    Give it a velocity of 10 and a random velocity of 10. You now have a range from 0 to 20.