ReferenceScript nodesMath › Vector 2
Make Vector 2
Two numbers together: a point, a size, a direction.
ƒMake Vector 2
X0.5Result
Y0.5
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Xx | number | 0.5 | – |
Yy | number | 0.5 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | vec2 |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(([0.5, 0.5]));In a graph
◆On Scene Start
ƒMake Vector 2
X0.5Result
Y0.5
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.