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