Calculating the shorter angle of rotation in 2D

Here’s a really simple math problem in 2D games development that has a surprisingly complex solution. If I were to give you angles a and b, how would you calculate 1) the direction — that is, clockwise being positive; and anti-clockwise being negative — and 2) magnitude of the shorter angle of rotation from a … Continue reading Calculating the shorter angle of rotation in 2D

3 Comments

Copy and paste this URL into your WordPress site to embed

Copy and paste this code into your site to embed