Another math related question.... So I've got this soldier that can look in 360 degrees. The soldier's ANGLE is based on the soldier and the player. BUT, I only want to soldier to fire in 8 directions minus straight up and straight down, so really only 6 directions. The bullets the soldier fires uses angles.
So the problem seems to be that I need to go from 360 directions (which is the angle between the soldier and the player) down to 8 directions (because the soldier can only fire in these directions).
This seems like a simple problem but it wouldn't surprise me if it was more complex than I realize.