VFX | Particle System
Particles are used for visual effects such as smoke, flames and block build/break effects.
Last updated
Particles are used for visual effects such as smoke, flames and block build/break effects.
Last updated
planet.particleEngine.add({ particleOptions });DEBUG.BB.planet.particleEngine.add({
parent: DEBUG.BB.planet.player,
name:[0,1,0].toString(),
type:"star",
numParticles: 100,
position: [0,1,0],
positionRange: [1,0,1],
colors:[
1, 1, 0, 0,
1, 1, 0, 1,
1, 0, 0, 1,
1, 0, 0, 1,
1, 0, 0, 0.5,
0, 0, 0, 0
],
lifeTime: 5,
timeRange: 2,
startSize: 10,
endSize: 20,
velocity: [ 0, 2, 0 ],
velocityRange: [ 0, 1, 0 ],
gravity: [ 0, -0.20, 0 ],
spinSpeedRange: 4
});planet.particleEngine.remove( particleName );DEBUG.BB.planet.particleEngine.remove([0,1,0].toString());position:[-1.5, 2, -1.5],
colors:[
0.7, 0.8, 1, 1
],
numParticles: 800,
lifeTime: 1,
timeRange: 1,
startSize: 0.05,
endSize: 0.05,
positionRange: [ 1, 0, 1 ],
velocity: [ 0, -2.0, 0 ],
blending:"multiply"type:"donut",
numParticles: 200,
position:[-1.5, 0, -1.5],
colors:[
0.7, 0.8, 1, 1,
0.7, 0.8, 1, 0
],
lifeTime: 2,
timeRange: 2,
startSize: 0,
endSize: 0.3,
positionRange: [ 1, 0, 1 ],
oriented:truetype:"star",
numParticles: 20,
position:[0,0,0],
colors:[
1, 1, 0, 0,
1, 1, 0, 1,
1, 0, 0, 1,
1, 0, 0, 1,
1, 0, 0, 0.5,
0, 0, 0, 0
],
lifeTime: 2,
timeRange: 2,
startSize: 0.3,
endSize: 0.9,
velocity: [ 0, 0.8, 0 ],
velocityRange: [ 0.15, 0.15, 0.15 ],
gravity: [ 0, -0.20, 0 ],
spinSpeedRange: 4type:"basic",
numParticles: 20,
position:[-1,0,0],
colors:[
0.2, 0.2, 1, 0,
0.2, 0.2, 1, 1,
0.2, 0.2, 1, 1,
0, 0, 1, 1,
0, 0, 1, 0.5,
0, 0, 1, 0
],
lifeTime: 2,
timeRange: 2,
startSize: 0.5,
endSize: 0.2,
velocity: [ 0, 0.8, 0 ],
gravity: [ 0, -0.20, 0 ],
spinSpeedRange: 4