@pixi/3d
    Preparing search index...

    Variable particleMotionBitConst Advanced

    particleMotionBit: {
        attributes: { aVel: "float32x3" };
        bindings: { material: { uDrag: "f32"; uGravity: "vec3<f32>" } };
        gl: { vertex: { beforeTransform: string } };
        gpu: { vertex: { beforeTransform: string } };
        name: string;
    } = ...

    Moves each particle from its launch point along a ballistic path, worked out on the GPU

    aPosition is the launch point and aVel the launch velocity, per particle. The container's uGravity uniform is the acceleration, and uDrag the linear drag per second, 0 for none. Compose it after particleLifetimeBit.

    Type Declaration

    • attributes: { aVel: "float32x3" }
    • bindings: { material: { uDrag: "f32"; uGravity: "vec3<f32>" } }
    • gl: { vertex: { beforeTransform: string } }
    • gpu: { vertex: { beforeTransform: string } }
    • name: string