Motion
Get Motion

ReferenceScript nodesMath › Vector 2

Polar to Cartesian

A direction and a length, as x and y.

Math › Vector 2Pure: no flow pinsfromPolar

Inputs

PinTypeStarts atNotes
Angle Degdegreesnumber45–
Lengthlengthnumber1–

Outputs

PinType
Resultoutvec2

The code it becomes

The graph below written as a script would write it.

// On Scene Startscene.log(([Math.cos(45 * Math.PI / 180) * 1, Math.sin(45 * Math.PI / 180) * 1]));

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.