ProtoFlux:Translate Rect: Difference between revisions

From Resonite Wiki
Created a page for the Translate Rect node.
 
Fixed input type on description header.
 
Line 21: Line 21:
The rect to offset.
The rect to offset.


=== Offset ([[Type:Rect|Rect]]) ===
=== Offset ([[Type:float2|float2]]) ===


The <code>X</code> and <code>Y</code> position to shift the rect in a direction.
The <code>X</code> and <code>Y</code> position to shift the rect in a direction.

Latest revision as of 15:27, 30 June 2024

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.