Answer the question
In order to leave comments, you need to log in
What is wrong with trigonometry in unity or is it C# to blame?
I fill the array with cosines of different angles, and got to the point that this place just hangs and eats RAM to infinity.
for (int i = 0; i < countDisperce; ++i)
{
cosinuses[i] = (Mathf.Cos(i * 2 * Mathf.PI / countDisperce));
}
cosinuses[i] = (Mathf.Cos(2));
cosinuses[i] = i/countDisperce;
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