New question on radians

Started by
10 comments, last by Paradigm Shifter 10 years, 7 months ago

Ended up using the below statement:

_a+= (_a>math.PI) ?-2*math.PI : (_a<-math.PI) ? 2*math.PI : 0;

and it works wonderfully.

I'll still look into vectors though. If there's a better way, I want to be able to do it too (aka get better at problem solving).

Thanks again.

Advertisement

Yeah, definitely look into vectors. Trig and vectors really are the key to getting better at game maths,

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

This topic is closed to new replies.

Advertisement