Skip to content
Download
API reference

ProceduralNodeGridSampler

Inherits: ProceduralNode < Resource < Shared < Object

A point in every cell of a grid.

A point at the centre of each cell where the input has density (the bounds of the run when nothing is wired). The grid is aligned to the world, so a place always gets the same point whatever the bounds: good for tiles.

TypeNameDefault
Vector3cell_sizeVector3(1, 1, 1)
boolfill_heightfalse
floatjitter0.0
Vector3offsetVector3(0, 0, 0)
Vector3point_extentsVector3(0, 0, 0)

Vector3 cell_size = Vector3(1, 1, 1)

Setter/getter: set_cell_size(), get_cell_size()

The size of a cell (in 2D, x and y; in 3D, x and z, and y with fill_height).

bool fill_height = false

Setter/getter: set_fill_height(), get_fill_height()

In 3D, also fills the height of the input with cells (a volume).

float jitter = 0.0

Setter/getter: set_jitter(), get_jitter()

How far each point may move from the centre of its cell, from 0 to 1 (a whole cell).

Vector3 offset = Vector3(0, 0, 0)

Setter/getter: set_offset(), get_offset()

Moves the grid.

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 a cell.