Exemple #1
0
        public Vector3 GetVelocity(FXEvent fxEvent, Random rand)
        {
            var velocityValue = FXFactory.GetLinearDistribution(rand, LinearDistribution, LinearVelocityMin, LinearVelocityMax);
            var velocity      = FXFactory.GetDirection(Direction, velocityValue, fxEvent);
            var addition      = FXFactory.GetRadialDistribution(rand, RadialDistribution, RadialVelocityMin, RadialVelocityMax);
            var advection     = fxEvent.Velocity * Advection;

            return(velocity + addition + advection);
        }
Exemple #2
0
 public float GetLifetime(Random rand)
 {
     return(FXFactory.GetLinearDistribution(rand, Distribution, MinLifetime, MaxLifetime));
 }