- Home /
Question by
ez06 · Nov 01, 2016 at 11:51 PM ·
scripting problem
How can a character following another predict his trajectory?
I'm trying to make a formula for the enemy to guess where the Hero will be.
Blue dot is Hero
Red dot is Enemy -red dot is following the blue dot and is trying to predict where it will be.
I made two dotted lines per drawing for two different values of Hero's velocity.
The variables I might use are these:
Hero's velocity
Distance between Hero and Enemy
projection point of Enemy onto Hero's trajectory
Any idea how I should go about predicting where the Enemy wants to go to catch the Hero?
untitled-1.jpg
(50.6 kB)
untitled-1.jpg
(31.4 kB)
Comment