Skip to content

Look into smoothing out the transitions between updating target routines in paddle ai #97

@jeffreypersons

Description

@jeffreypersons

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.

Metadata

Metadata

Labels

enhancementImprovements or refinements of any kindgame-mechanicsGameplay elements (ex: player movement, AI)questionSomething to look into (ex: try out unity cloud builds)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions