Skip to content

Exercise 2: Sparks that spread and fall

Purpose. To turn the single file of particles from Exercise 1 into a shower of sparks.

The emitter from Exercise 1 throws every particle up the same line, for the same length of time. Sparks do not behave that way. Each leaves at its own angle, gravity bends its path, and each burns out at its own moment. Four settings produce that.

  • The emitter from Exercise 1 is in the workspace, with Speed 20 and Drag 2.
  • The emitter is selected, so the HUD and the Properties panel are showing.
StepControlActionResult
1Properties ▸ Emission ▸ EnabledSwitch onThe stream from Exercise 1 returns: one file of particles, straight up.
2Properties ▸ Motion ▸ SpreadAngleEnter 25Each particle leaves at its own angle, leaning up to 25 degrees to either side of the Part’s up axis. The file becomes a fan.
3Properties ▸ Motion ▸ AccelerationEnter 0, -40, 0Particles rise, slow, and fall. A particle that leaves straight up peaks about 2.7 studs above the Part after 0.3 seconds. It ends between 11 and 12 studs below the Part.
4Properties ▸ Emission ▸ LifetimeEnter 0.6, 1.4Each particle lasts its own length of time, between 0.6 and 1.4 seconds. They no longer vanish at the same height.
5Properties ▸ Emission ▸ RateEnter 40Forty particles a second. The shower thickens at once.
6Properties ▸ Emission ▸ EnabledSwitch offNo new particles appear. Those in flight finish.

SpreadAngle holds two angles in degrees, one for each of the two ways a particle can lean away from its line. For every particle, each lean is picked at random between minus the value and plus the value. One number typed alone fills both. At 0, 0 every particle takes exactly the same line.

Acceleration is a steady push, written as three numbers for the X, Y and Z directions of the world, in studs per second per second. A push of 40 downward moves a particle 20 studs in its first second and 80 studs in two.

Lifetime takes two numbers, the shortest life and the longest. Each particle picks one value between them when it is made. One number typed alone gives every particle the same life.

Rate multiplied by Lifetime gives the number of particles in the air at once. Here that is at most 40 × 1.4, or 56.

SymptomCauseAction
The fan is flat, like a sheetTwo numbers were typed and one is 0.Enter 25 alone, or 25, 25.
Particles drift sideways as they fallAcceleration has a value in X or Z.Enter 0, -40, 0.
Particles already in flight ignore an editThey keep the settings they were made with.Wait one Lifetime.
ChangeResult
SpreadAngle 180Particles leave in every direction.
SpreadAngle 40, 0A flat fan, spread one way only.
Acceleration 0, 15, 0Embers: the push is upward. Particles slow at first, then gather speed again in the second half of their life.
Acceleration 10, -40, 0A side wind bends the shower along the world’s X direction.
Motion ▸ Direction set to FrontThe fan leaves the Part’s front face instead of its top.
Lifetime 1Every particle lasts exactly one second again.
New in this exerciseSpreadAngle. Acceleration. A Lifetime with two numbers. Rate.
Done beforeSelecting the emitter. Enabled on and off (Exercise 1). Typing a value into a Motion row (Exercise 1).
Carried forwardKeep this emitter. Exercise 3 fires it as a single burst.