Skip to content

WorldLines beta ​

Interface of @v12-engine/client

ts
export interface WorldLines

Lines in the world a few pixels wide, unlit and never picked, which a lane's or a panel's drawing in the editor's view says once as it is made: points in world units, colours from 0 to 1

Members ​

circle ​

ts
circle(middle: {
        x: number;
        y: number;
        z: number;
    }, radius: number, colour?: readonly number[], options?: WorldLineOptions): void;

A ring flat about a point

line ​

ts
line(a: {
        x: number;
        y: number;
        z: number;
    }, b: {
        x: number;
        y: number;
        z: number;
    }, colour?: readonly number[], options?: WorldLineOptions): void;

A line from one point to another

path ​

ts
path(points: readonly {
        x: number;
        y: number;
        z: number;
    }[], colour?: readonly number[], options?: WorldLineOptions & {
        closed?: boolean;
    }): void;

A line through points, closed back to the first where asked