Answer the question
In order to leave comments, you need to log in
Why do the signs change too often when calculating cosine and sine?
When calculating the sine and cosine of angles from 0 to 360, the signs of these functions change very often. In general, I want to make the object move in a circle, but because of this, it just jumps from one quarter to another. Here is the code
x = (r * MathUtils.cos(angle));
y = (r* MathUtils.sin(angle));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question