Post

It's been a while since I posted about my #indiegame but here is a work in progress for target lock for missiles (complete with debug overlays so you can see what is happening) #screenshotsaturday #gamedev

4 reposts18 likes

I had originally tried to use some of my steering behaviour implementations to have missiles dynamically seek their locked targets but the missiles would sometimes miss unless I allowed them to turn at extreme angles. Since this is supposed to have an arcade feel, I didn't want them to ever miss

What I do now is generate some splines with three points (start, mid, end/target) and have the missile follow this. When doing this I have some parameters to control the "fan out" of the missile paths but also can add some random jitter if I want.