How to create an “intercept missile” for a game?

后端 未结 5 798
眼角桃花
眼角桃花 2021-01-31 11:50

I have a game I am working on that has homing missiles in it. At the moment they just turn towards their target, which produces a rather dumb looking result, with all the missil

5条回答
  •  佛祖请我去吃肉
    2021-01-31 12:16

    You'll want to interpolate the trajectory of both the target and the missile as a function of time. Then look for the times in which the coordinates of the objects are within some acceptable error.

提交回复
热议问题