Hello,
So I am doing this game where the characters runs forever on a sphere Object.
I want to calculate how manny feets & miles he travels.
I found out that 1 foot equals 0.17 degrees on the eurlangles.x of the sphere.
I tried :
float rota = transform.eulerAngles.x;
Debug.Log(rota);
if(rota % 0.17<=0.1f)
{
feet++;
}
It kind of works, the problem is that it’s on Update and it’s doing it when it’s not supposed to, or too often.
I am looking for a way to count 1 feet each time the sphere turns 0.17 degrees.
Any ideas?