arduino stuffs
1
2
3
4
5
6
7
8
9
10
extends Node


func prepare(v: Vector2) -> Vector2:
	v = v.normalized()
	if v.x < 0:
		v.x = 1 - v.x
	if v.y < 0:
		v.y = 1 - v.y
	return v