I need help creating a function to convert an angle to two float variables.
Here are some examples of the outputs:
I'm not entirely sure if you are hung up on the syntax or the algorithmic part of this problem. I figure the syntax is simpler to look up so I will offer the simple calculation.
Your tuple will be calculated using the lua math functions: math.rad, math.cos, math.sin
{math.cos(math.rad(degrees)), math.sin(math.rad(degrees))}
Hope that helps