Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

instances.place (procNode)

Place points by a transform record: its offset is added to P, its rotation is written as orient and its scale as scale. Without a transform the points stay where they are, with orient (0, 0, 0, 1) and scale (1, 1, 1) written on them. instances.on_points and instances.variants place their points with it.

Inputs

  • points (Points). The points placed: one placement per point, written on a copy.
  • transform (Transform, optional). The per-point placement, a record of offset (Vec3), orient (Vec4 quaternion) and scale (Vec3), each a constant or a field. instances.randomize_transform makes one.

Outputs

  • points (Points). The points carrying orient and scale.
local placed = g.instances.place({ points = g.points.grid({ countX = 3, countZ = 3 }), transform = g.instances.randomize_transform({ seed = 1 }) })