Files
2026-05-20 12:29:30 -07:00

38 lines
862 B
Plaintext

//
// spark particle
//
numParticles 2
material textures/sfx/flamesparks
initialVelocity ( cone, 0.0, 0.0, 0.0, 0.0, 0.0, 5.5, 1, 3 )
// the size is between 0.5 and 1.25
size ( 0.75, 1.5 )
trailSize 1
stayDead
begin {
// when a particle dies, it will re-start with the same base velocity
copyVelocitys
// allow up to 1 particles per iteration to appear in the defined plane
source ( 2, point, 0, 0, 0 )
targetcolor ( 0, 0, 0, 0, 0.15 )
// what kind of gravity force is applied to them
gravity ( 0.0, 0.0, -0.02 )
// friction, resilience, cutoff, and the plane definition
//bounceOff ( 0.3, 0.3, 0, world )
killIfOlderThan 80
applydamping ( 0.9, 0.9, 0.9 )
killunseen
//explode (0, 0, 0, 2, 2, 2, 0.1, 2)
killOutside ( box, -200, -200, -200, 200, 200, 200 )
// run this loop
applyMathSoFar
}