Search Unity

Particle system : is it possible to use discrete randomization?

Discussion in 'General Graphics' started by CGDever, Jan 4, 2021.

  1. CGDever

    CGDever

    Joined:
    Dec 17, 2014
    Posts:
    156
    Hi here!
    I have to use ForceOverLifetime and applying force should be only -5 OR +5.
    So, values between -5 and +5 should not be used.

    Can this be done in Unity? How can I do this?
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Are you able to write a script? I think that’s the only way.
     
  3. CGDever

    CGDever

    Joined:
    Dec 17, 2014
    Posts:
    156
    Thanks! Yes, I'm able to, but I wanted to decrease amount of work for CPU tho...
     
  4. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,073
    Why you need force over lifetime when you set value once ?
     
  5. CGDever

    CGDever

    Joined:
    Dec 17, 2014
    Posts:
    156
    I have to add force once +5 OR -5.
     
  6. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
  7. CGDever

    CGDever

    Joined:
    Dec 17, 2014
    Posts:
    156
    richardkettlewell likes this.