Starts every particle at the emitter, heading straight up; the default shape
const jet = new ParticleSystem3D({ shape: new PointShape(), speed: 6 }); Copy
const jet = new ParticleSystem3D({ shape: new PointShape(), speed: 6 });
Advanced
Puts the particle on the emitter, heading straight up
Unused
Receives the origin
Receives +Y
class MyFountainShape implements EmitterShape { private readonly _point = new PointShape(); public sample(rng: () => number, outPos: Vector3, outDir: Vector3): void { this._point.sample(rng, outPos, outDir); outPos.y = 1.2; }} Copy
class MyFountainShape implements EmitterShape { private readonly _point = new PointShape(); public sample(rng: () => number, outPos: Vector3, outDir: Vector3): void { this._point.sample(rng, outPos, outDir); outPos.y = 1.2; }}
Starts every particle at the emitter, heading straight up; the default shape
Example