Documentation / Node reference / geo nodes

geo/Line

Creates a straight line, or a line through the input's points.

Primitives Dimension 2d

Creates a straight line in the XY plane. With an input, it joins each object's points in order instead, and the params do nothing. A closed input gives a closed line.

Parameters

Name Type What it does
length Float Length of the line.
pointsCount UInt32 Number of points along the line.
origin Vector2 Where the line starts.
direction Vector2 Direction the line runs in.
asPoints Bool Make points only, no segments.

Examples

Scenes you can open in the editor that teach this node.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.