angle to vector code example Example: angle to vector2 var direction = Vector2(cos(angle), sin(angle))