Linear constant speed Projectiles

Predicting a targets position when firing a linear projectile

Overview

Ranged AI are common in games, and in an effort to make it a more enjoyable player experience we want them to predict the players movement (making it believable) but not hitscan so the player has some chance for outplay.

This post is based off the following GDC talk

The project can be found here: Github link

The GDC talk does an exceptional job of explaining the details, which I may re-explain and recount later but for now here a UE implementation of the logic talked about for predicting a linear projectile.

.h

.cpp

Last updated