python - Trajectory of acceleration 2D vector of a spaceship in order to collide with a moving 2D object -


i making bot (in python) controls spaceship in 2d game xpilot. should able accelerate towards moving object , collide it. both ship , object has xy-position , xy-velocity. ship has acceleration. there no other forces such friction.

the bot knows magnitude of vectors: selfx, selfy, selfvelx, selfvely, targetx, targety, targetvelx, targetvely, selfacceleration.

the solution find correct direction of acceleration in order collide object , not how properly.

i using guide shoot bullets @ moving objects , works perfect. using ship "bullet" works (especially when ship still) more bad.

this badly drawn illustration of problem.


Comments

Popular posts from this blog

Formatting string according to pattern without regex in php -

c - zlib and gdi32 with OpenSSL? -

java - inputmismatch exception -