Control/AI Improvement
After spending a few hours remembering how to do control theory and Laplace Transforms, I did some significant upgrades to the Proportional + Differential controllers that are used to determine the rotational behaviour of the player and enemy ships. The parameters for the controllers are now calculated appropriately for each ship, thus leading to much better behaviour when rotating to the current target direction (less overshoot and faster damping).I've also started to do a bit of preliminary work on the swarm mechanics. One of the main issues here is how to efficiently identify the neighbouring Scourge ships when you could have around 2000 in play simultaneously (leading to around 2000000 naive distance calculations to calculate all neighbours). I'm currently considering some kind of dynamic histogram-based binning method.
No comments:
Post a Comment