Skip to content
Download
API reference

ProceduralNodeOffsetPolygon

Inherits: ProceduralNode < Resource < Shared < Object

Grows or shrinks each polygon.

Every edge moves out by offset (in by a negative one): a margin around a road, the inside of a wall, the yard inside a fence. A polygon that shrinks to nothing goes.

TypeNameDefault
intjoin1
floatoffset10.0

  • JOIN_SQUARE = 0 — Corners cut square.

  • JOIN_ROUND = 1 — Round corners.

  • JOIN_MITER = 2 — Sharp corners.

int join = 1

Setter/getter: set_join(), get_join()

The corners when it grows: square, round or sharp (miter).

float offset = 10.0

Setter/getter: set_offset(), get_offset()

How far the edges move out (in, below 0).