Hi
Does anyone know if there is an expression or simple way to round an angle to the nearest 90 degrees?
Thanks
You could do something like this:
roundedAngle = round(yourAngle / 90) * 90
Develop games in your browser. Powerful, performant & highly capable.
Ah clever, yes that will work. Thanks!