Rainther
I guess I should write something of value here...
- Reaction score
- 61
Hey hey.
Solved
My AI is up and running and funny as hell
I'm in the need of an efficient method to determine which angle that's the closiest of. The scenario is that I have one unit's facing angle, the angle between this unit and the target and need to determine which one of the angle between them ( + 90 degreess or - 90 degrees ) that is the closiest one.
The reason I need this is because I'm making a battle ship system and are trying to make an AI to focus enemy ships. However it's only able to attack from the sides with it's cannons so I'll also make a system later on to fire once the right degree is there.
Anyhow... I believe this could be solved with a simple formula, however I don't know the useage of rads for example.
Solved
My AI is up and running and funny as hell
I'm in the need of an efficient method to determine which angle that's the closiest of. The scenario is that I have one unit's facing angle, the angle between this unit and the target and need to determine which one of the angle between them ( + 90 degreess or - 90 degrees ) that is the closiest one.
The reason I need this is because I'm making a battle ship system and are trying to make an AI to focus enemy ships. However it's only able to attack from the sides with it's cannons so I'll also make a system later on to fire once the right degree is there.
Anyhow... I believe this could be solved with a simple formula, however I don't know the useage of rads for example.