#[Closed]
20 messages · Page 1 of 1 (latest)
atan2 takes the x and z of a vector and outputs the angle of y
It can take any number but thats the best way i've found to describe it
@grave jungle what IS the angle though?
Like is the angle relative to the x and z differences from 0,0?
yep
when you say it outputs the angle of y, are you saying y is just a placeholder or the angle in degrees, or is it getting the angle from 0,0 to the point on a 2d plane, with the X axis being the X axis and the Z axis being the Y axis?
i think
wait so which pin do you put which value in
also if the point is (-100, 0) would it output 180?
and then if the point is (0, -100) would it output 270 or -90
or none
it would output 180
it will output -90
alright so anything between 180 and 360 gets turned negative
so the max is 180 and the min is -179