#I meant to log the rotation angle from
1 messages · Page 1 of 1 (latest)
e.g., Debug.Log(this.transform.eulerAngles);
that doesnt really help much, just returns with greater value difference when turning right (small circle)
which i already knew
Yes, so if you log before and after the rotation is modified you can see if the rotation is changing somewhere else too.
It must be because you modify both directions by the same amount, as you already saw from your previous log (which was by 75 or -75).
Since you're always modifying by + or - 75 the rotation should always be a multiple of it. If it's not then that is also telling you there is a problem somewhere else.
the only code affecting its rotation is the code i showed, so there is no external sources/influence affecting it. plus the Time.deltaTime assure that it wont return a mitiple of 75, since that 75 value was returned without deltatime in mind
so the data i would be getting back from the debug would have variables between those multiples
but if i remove time.deltatime i do get multiples of 77.5 (the atual value)
oh yeah, I forgot about the variable deltaTime there. You could temporarily replace it with a constant.
If that really is the only code affecting the rotation then your only variables are deltaTime and rotationSpeed. Try taking them out of the equation to see if either of those is giving you the incorrect results.