self.reset() self.setPos(0.000, 0.000, 0.000) self.setHpr(0.000, 0.000, 0.000) self.setScale(1.000, 1.000, 1.000) p0 = Particles.Particles('particles-1') # Particles parameters p0.setFactory("PointParticleFactory") p0.setRenderer("GeomParticleRenderer") p0.setEmitter("SphereVolumeEmitter") p0.setPoolSize(20) p0.setBirthRate(0.1000) p0.setLitterSize(20) p0.setLitterSpread(0) p0.setSystemLifespan(0.0000) p0.setLocalVelocityFlag(1) p0.setSystemGrowsOlderFlag(0) # Factory parameters p0.factory.setLifespanBase(3.0000) p0.factory.setLifespanSpread(0.0000) p0.factory.setMassBase(1.0000) p0.factory.setMassSpread(0.0000) p0.factory.setTerminalVelocityBase(400.0000) p0.factory.setTerminalVelocitySpread(0.0000) # Point factory parameters # Renderer parameters p0.renderer.setAlphaMode(BaseParticleRenderer.PRALPHANONE) p0.renderer.setUserAlpha(1.00) # Geom parameters #p0.renderer.setGeomNode(jellybean4.egg) # Emitter parameters p0.emitter.setEmissionType(BaseParticleEmitter.ETRADIATE) p0.emitter.setAmplitude(20.0000) p0.emitter.setAmplitudeSpread(0.0000) p0.emitter.setOffsetForce(Vec3(0.0000, 0.0000, 20.0000)) p0.emitter.setExplicitLaunchVector(Vec3(1.0000, 0.0000, 0.0000)) p0.emitter.setRadiateOrigin(Point3(0.0000, 0.0000, 0.0000)) # Sphere Volume parameters p0.emitter.setRadius(2.0000) self.addParticles(p0) p1 = Particles.Particles('particles-2') # Particles parameters p1.setFactory("PointParticleFactory") p1.setRenderer("GeomParticleRenderer") p1.setEmitter("SphereVolumeEmitter") p1.setPoolSize(20) p1.setBirthRate(0.1000) p1.setLitterSize(20) p1.setLitterSpread(0) p1.setSystemLifespan(0.0000) p1.setLocalVelocityFlag(1) p1.setSystemGrowsOlderFlag(0) # Factory parameters p1.factory.setLifespanBase(3.0000) p1.factory.setLifespanSpread(0.0000) p1.factory.setMassBase(1.0000) p1.factory.setMassSpread(0.0000) p1.factory.setTerminalVelocityBase(400.0000) p1.factory.setTerminalVelocitySpread(0.0000) # Point factory parameters # Renderer parameters p1.renderer.setAlphaMode(BaseParticleRenderer.PRALPHANONE) p1.renderer.setUserAlpha(1.00) # Geom parameters #p1.renderer.setGeomNode(jellybean4.egg) # Emitter parameters p1.emitter.setEmissionType(BaseParticleEmitter.ETRADIATE) p1.emitter.setAmplitude(20.0000) p1.emitter.setAmplitudeSpread(0.0000) p1.emitter.setOffsetForce(Vec3(0.0000, 0.0000, 20.0000)) p1.emitter.setExplicitLaunchVector(Vec3(1.0000, 0.0000, 0.0000)) p1.emitter.setRadiateOrigin(Point3(0.0000, 0.0000, 0.0000)) # Sphere Volume parameters p1.emitter.setRadius(2.0000) self.addParticles(p1) p2 = Particles.Particles('particles-3') # Particles parameters p2.setFactory("PointParticleFactory") p2.setRenderer("GeomParticleRenderer") p2.setEmitter("SphereVolumeEmitter") p2.setPoolSize(20) p2.setBirthRate(0.1000) p2.setLitterSize(20) p2.setLitterSpread(0) p2.setSystemLifespan(0.0000) p2.setLocalVelocityFlag(1) p2.setSystemGrowsOlderFlag(0) # Factory parameters p2.factory.setLifespanBase(3.0000) p2.factory.setLifespanSpread(0.0000) p2.factory.setMassBase(1.0000) p2.factory.setMassSpread(0.0000) p2.factory.setTerminalVelocityBase(400.0000) p2.factory.setTerminalVelocitySpread(0.0000) # Point factory parameters # Renderer parameters p2.renderer.setAlphaMode(BaseParticleRenderer.PRALPHANONE) p2.renderer.setUserAlpha(1.00) # Geom parameters #p2.renderer.setGeomNode(jellybean4.egg) # Emitter parameters p2.emitter.setEmissionType(BaseParticleEmitter.ETRADIATE) p2.emitter.setAmplitude(20.0000) p2.emitter.setAmplitudeSpread(0.0000) p2.emitter.setOffsetForce(Vec3(0.0000, 0.0000, 20.0000)) p2.emitter.setExplicitLaunchVector(Vec3(1.0000, 0.0000, 0.0000)) p2.emitter.setRadiateOrigin(Point3(0.0000, 0.0000, 0.0000)) # Sphere Volume parameters p2.emitter.setRadius(2.0000) self.addParticles(p2) p3 = Particles.Particles('particles-4') # Particles parameters p3.setFactory("PointParticleFactory") p3.setRenderer("GeomParticleRenderer") p3.setEmitter("SphereVolumeEmitter") p3.setPoolSize(20) p3.setBirthRate(0.1000) p3.setLitterSize(20) p3.setLitterSpread(0) p3.setSystemLifespan(0.0000) p3.setLocalVelocityFlag(1) p3.setSystemGrowsOlderFlag(0) # Factory parameters p3.factory.setLifespanBase(3.0000) p3.factory.setLifespanSpread(0.0000) p3.factory.setMassBase(1.0000) p3.factory.setMassSpread(0.0000) p3.factory.setTerminalVelocityBase(400.0000) p3.factory.setTerminalVelocitySpread(0.0000) # Point factory parameters # Renderer parameters p3.renderer.setAlphaMode(BaseParticleRenderer.PRALPHANONE) p3.renderer.setUserAlpha(1.00) # Geom parameters #p3.renderer.setGeomNode(jellybean4.egg) # Emitter parameters p3.emitter.setEmissionType(BaseParticleEmitter.ETRADIATE) p3.emitter.setAmplitude(20.0000) p3.emitter.setAmplitudeSpread(0.0000) p3.emitter.setOffsetForce(Vec3(0.0000, 0.0000, 20.0000)) p3.emitter.setExplicitLaunchVector(Vec3(1.0000, 0.0000, 0.0000)) p3.emitter.setRadiateOrigin(Point3(0.0000, 0.0000, 0.0000)) # Sphere Volume parameters p3.emitter.setRadius(2.0000) self.addParticles(p3) p4 = Particles.Particles('particles-5') # Particles parameters p4.setFactory("PointParticleFactory") p4.setRenderer("GeomParticleRenderer") p4.setEmitter("SphereVolumeEmitter") p4.setPoolSize(20) p4.setBirthRate(0.1000) p4.setLitterSize(20) p4.setLitterSpread(0) p4.setSystemLifespan(0.0000) p4.setLocalVelocityFlag(1) p4.setSystemGrowsOlderFlag(0) # Factory parameters p4.factory.setLifespanBase(3.0000) p4.factory.setLifespanSpread(0.0000) p4.factory.setMassBase(1.0000) p4.factory.setMassSpread(0.0000) p4.factory.setTerminalVelocityBase(400.0000) p4.factory.setTerminalVelocitySpread(0.0000) # Point factory parameters # Renderer parameters p4.renderer.setAlphaMode(BaseParticleRenderer.PRALPHANONE) p4.renderer.setUserAlpha(1.00) # Geom parameters #p4.renderer.setGeomNode(jellybean4.egg) # Emitter parameters p4.emitter.setEmissionType(BaseParticleEmitter.ETRADIATE) p4.emitter.setAmplitude(20.0000) p4.emitter.setAmplitudeSpread(0.0000) p4.emitter.setOffsetForce(Vec3(0.0000, 0.0000, 20.0000)) p4.emitter.setExplicitLaunchVector(Vec3(1.0000, 0.0000, 0.0000)) p4.emitter.setRadiateOrigin(Point3(0.0000, 0.0000, 0.0000)) # Sphere Volume parameters p4.emitter.setRadius(2.0000) self.addParticles(p4) f0 = ForceGroup.ForceGroup('forces') # Force parameters force0 = LinearSinkForce(Point3(0.0000, 0.0000, -79.0000), LinearDistanceForce.FTONEOVERRSQUARED, 15.9701, 95.0000, 1) force0.setActive(1) f0.addForce(force0) self.addForceGroup(f0)