EFire constructor

EFire(
  1. EGradient fireGradient,
  2. EGradient smokeGradient,
  3. EGradient lightGradient,
  4. int fireParticlesPerTick,
  5. int smokeParticlesPerTick,
  6. ERelativePair startPoint,
  7. EVector2D flameDirection,
  8. ERelative scatteringAngle,
  9. ERelative startSize,
  10. ERelative decreaseSize,
  11. ERelative glow,
  12. ERelative lightRadius,
  13. ERelative particleSpeed, {
  14. String name = "",
})

Implementation

EFire(
    this.fireGradient,
    this.smokeGradient,
    this.lightGradient,
    this.fireParticlesPerTick,
    this.smokeParticlesPerTick,
    this.startPoint,
    this.flameDirection,
    this.scatteringAngle,
    this.startSize,
    this.decreaseSize,
    this.glow,
    this.lightRadius,
    this.particleSpeed,
    {String name = ""})
    : super(true, true, name: name) {
  scatteringAngle.relative = scatteringAngle.relative * (pi / 180);
}