@pixi/3d
    Preparing search index...

    Class PointShape

    Starts every particle at the emitter, heading straight up; the default shape

    const jet = new ParticleSystem3D({ shape: new PointShape(), speed: 6 });
    

    Implements

    Index
    • Advanced

      Puts the particle on the emitter, heading straight up

      Parameters

      • _rng: () => number

        Unused

      • outPos: Vector3

        Receives the origin

      • outDir: Vector3

        Receives +Y

      Returns void

      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;
      }
      }