ProtoFlux:Translate Rect

From Resonite Wiki
Revision as of 15:27, 30 June 2024 by AmasterAmaster (talk | contribs) (Fixed input type on description header.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Translate Rect
Rect
*
Offset
Rects

The Translate Rect node takes in a rect value and an offset (float2) which corresponds with the X and Y position of the entire rect, and returns a rect that has been translated to its new location.

Inputs

Rect (Rect)

The rect to offset.

Offset (float2)

The X and Y position to shift the rect in a direction.

Outputs

* (Rect)

Returns the translated rect.