Scale
Last updated
Last updated
The Scale Vector2 node multiplies a 2D vector by a scalar value, changing its length while preserving its direction. It's useful for resizing vectors or adjusting their magnitude.
Vector
The 2D vector to scale
Vector2
Yes
Scalar
The multiplication factor
Number
No
Value
The scaled vector
Vector2
Drag the Scale Vector2 node into your graph.
Connect a 2D vector (like [10, 20]
) to the "Vector" input.
Set the "Scalar" input to your desired scale factor (like 0.5
or 2
) or use the default (1
).
The output will be a vector with each component multiplied by the scalar (e.g., [5, 10]
or [20, 40]
).
A scalar value of 1 leaves the vector unchanged.
Negative scalar values reverse the vector's direction.
Combine with Normalize to create vectors of exact length.
Normalize Vector2: For creating a unit vector from any vector.
Vector2 Length: For measuring the magnitude of a vector.
Responsive Design: Scale dimensions based on screen size or container proportions.
Animation: Adjust movement vectors for speed control.
Visual Adjustments: Resize vector-based graphics while preserving proportions.