-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Smoothen transitions between updating target routines
Some times the ai paddle acts a little jarringly, and this is due to what I think is the target coroutine switches right away after the paddle being motionless for a moment in between.
Some ideas include a timing out transition, a coroutine that has behavior somewhat like the targeting strategy used before and after, etc - however this would complicate the target coroutine/AI code considerably, and maybe make its behavior to complicated if transitions get too in depth. The more complicated the more special cases occur, of course, so good to stay wary of that.
An idea...
With the above said, the simplest and highest bang-for-the-buck thing to focus on would probably be when the ball is approach and starts to pass the paddle, as that is the most obvious area for improvement. It should keep going a little bit more before stopping, so adding a timer WITHOUT changing the paddle position to its current center might just be enough.