Hi,
I have AI units following player in formation. Formation reacts to player changing direction of movement. Each unit recieves Destination vector calculated according to ther array index.
My question is: how would you recommend to call this formation change? Every tick is ideal for smoothest movement, but what would it do with performance?
1 player can have up to 100 units (now.)
There is one human player and 3 AI players (now).
And 100 neutral units
So its up to 500 units that recieves AI Move To function.
My skill so far says: dont do it every tick. Use Event by timer and do it every 0,1 sec or so.
But is there some better way you would recommend? Maybe something else than AI Move To?
I am happy for suggestions of topics to study.
Thank you.