Skip to content
Download
API reference

ProceduralNodeCurveSampler

Inherits: ProceduralNode < Resource < Shared < Object

Points along a curve.

A point every spacing along each curve: fence posts, trees along a road, stones along a river.

TypeNameDefault
boolaligntrue
StringNamecurve_attribute&""
StringNamedistance_attribute&""
boolinclude_endtrue
Vector3point_extentsVector3(0, 0, 0)
floatspacing1.0
floatstart0.0

bool align = true

Setter/getter: set_align(), get_align()

Turns each point the way the curve goes.

StringName curve_attribute = &""

Setter/getter: set_curve_attribute(), get_curve_attribute()

When set, the attribute that gets which of its curves each point is on (0, 1…): for ProceduralNodeSpawnCurve.group_attribute.

StringName distance_attribute = &""

Setter/getter: set_distance_attribute(), get_distance_attribute()

When set, the attribute that gets how far along the curve each point is.

bool include_end = true

Setter/getter: set_include_end(), get_include_end()

Adds a point at the end of an open curve.

Vector3 point_extents = Vector3(0, 0, 0)

Setter/getter: set_point_extents(), get_point_extents()

Half the size of each point’s box. Zero: half the spacing.

float spacing = 1.0

Setter/getter: set_spacing(), get_spacing()

The distance between points.

float start = 0.0

Setter/getter: set_start(), get_start()

Where along the curve the first point goes.