@pixi/3d
    Preparing search index...

    Interface PointData3D

    Minimal { x, y, z } shape that 3D math methods accept

    Any plain object with these three numbers can be passed in place of a Vector3.

    const spawnPoint: PointData3D = { x: 0, y: 1, z: -5 };

    enemy.position.copyFrom(spawnPoint);
    interface PointData3D {
        z: number;
    }

    Hierarchy (View Summary)

    Index
    z
    z: number

    Position on the z axis

    waypoints.sort((a: PointData3D, b: PointData3D) => a.z - b.z);