Posted August 09, 2021 by alexipeck
Right click to set the movement position of my character, left click to spawn an enemy where I click using raycasting, which tracks my character the moment it spawns.
The method I used for movement prediction was very primitive, I took the difference between my characters position between the current and last frame, then add that difference to the enemies target movement. This technically doesn't take into account whether that difference was a positive or a negative, nor has it been validated, it could be completely fine for all I know.