For the complete documentation index, see llms.txt. This page is also available as Markdown.

renderer.drawLine

drawLine(start, end, color, width, depth): void

Draws a straight line between two world positions.

Parameters

start

Vec3

The start position in world coordinates.

end

Vec3

The end position in world coordinates.

color

Color

The line color.

width

number

The line width in pixels (0.1-64).

depth

boolean

Whether the line is hidden behind blocks.

Returns

void

Last updated