// // bubble particle // // numParticles 2560 numParticles 1000 material textures/sfx/bubble // sphere x,y,z radius1, radius2 initialVelocity ( point, 0.75, 0, 0 ) // the size is between 0.5 and 1.25 size ( 1, 2 ) randomColor ( 0.5, box, 0.0, 0.0, 0.0, 1, 1, 1 ) angle ( 0, 359 ) rotationSpeed ( -3, 3 ) liveforever begin { // when a particle dies, it will re-start with the same base velocity copyVelocitys // allow up to 150 particles per iteration to appear in the defined plane source ( .2, cylinder, 0.0, 0.0, 0.0, 1.0, 0.0, 0, 27, 0 ) // this means, if the particle enters domain A, then get a new velocity from domain P // so for this one, if it enters the cylinder, then it takes a new velocity from the line chainTo ( cylinder, 100, 0, 0, 110, 0, 0, 27,0, point, 0.5, 0, -0.2 ) chainTo ( cylinder, 140, 0, -10, 160, 0, -11, 50,0, point, 0.5, 0, -0.5 ) chainTo ( cylinder, 390, 0, -250, 400, 0, -260, 40,0, point, -0.95, 0, -1 ) killIfOlderThan 1000 // run this loop applyMathSoFar }