ProceduralNodeCurveSampler
Inherits: ProceduralNode < Resource < Shared < Object
Points along a curve.
Description
Section titled “Description”A point every spacing along each curve: fence posts, trees along a road, stones along a river.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| bool | align | true |
| StringName | curve_attribute | &"" |
| StringName | distance_attribute | &"" |
| bool | include_end | true |
| Vector3 | point_extents | Vector3(0, 0, 0) |
| float | spacing | 1.0 |
| float | start | 0.0 |
Property descriptions
Section titled “Property descriptions”bool align = true
Setter/getter: set_align(), get_align()
Turns each point the way the curve goes.
curve_attribute
Section titled “curve_attribute”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.
distance_attribute
Section titled “distance_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.
include_end
Section titled “include_end”bool include_end = true
Setter/getter: set_include_end(), get_include_end()
Adds a point at the end of an open curve.
point_extents
Section titled “point_extents”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.
spacing
Section titled “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.