Exemplo n.º 1
0
 public EmiterClass(MRVector emiterCoords, string emiterName, int particlesSpawnQuantity)
 {
     HPosition              = hPosition;
     EmitertCoords          = emiterCoords;
     Width                  = width;
     CurrentEmiterName      = emiterName;
     ParticlesSpawnQuantity = particlesSpawnQuantity;
 }
Exemplo n.º 2
0
 public Particle(MRVector initialCoords, MRVector velocity, float rotation, int lifeTime, int width, int height)
 {
     InitialCoords       = initialCoords;
     Velocity            = velocity;
     LifeTime            = lifeTime;
     ParticleSize.Width  = width;
     ParticleSize.Height = height;
     // RotationAngleRadians = (rotation*3.14)/180;
 }
Exemplo n.º 3
0
 public void Update()
 {
     LifeTime--;
     if (LifeTime > 0)
     {
         //Velocity.X = Velocity.X * MatMathf.Cos(RotationAngleRadians);
         //Velocity.y = Velocity.Y * MatMathf.Cos(RotationAngleRadians);
         InitialCoords = InitialCoords + Velocity;
     }
     else
     {
         ParticleSize.Height = 0;
         ParticleSize.Width  = 0;
         LifeTime            = 0;
         InitialCoords       = null;
         Velocity            = null;
     }
 }