Well I think about some sort of State Machine algorithm to make the turret code more pattern but who know may be some other algorithm will be much batter.
Turret states:
SEARCH
FIRE
RELOAD
transition condition from search to fire will be a sort of decision tree which will identify suitable target.
Well I think about some sort of State Machine algorithm to make the turret code more pattern but who know may be some other algorithm will be much batter.
Turret states:
transition condition from search to fire will be a sort of decision tree which will identify suitable target.