I am looking to predict the position of a moving object given its heading and its velocity. But the time needs to be calculated aswell.
There are two objects on the plane, my object and a target object. The target object is moving with constant velocity and i can detect its heading and velocity. Assume that my object is stationary. I must fire a bullet at it. The bullet will travel at a certain velocity (which will be different for each shot, so i need this to be a variable in the eq aswell). This is the part I am having trouble with, I think there will need to be a bit of differentiation to minimize the distance so that the bullet will hit.
Basically, I need to predict where the target object will be by the time the bullet would hit it, so that I can aim at it.
It's a 2D flat plane. Bottom left corner is (0,0) and angles are given so that vertically up is 0, looking to the right would be 90deg, down is 180, etc.
Thanks for any help! Just post a question if you need more info!
P.S. I can also determine the bearing of the target relative to my object, if that make anything a bit easier.
PPS. Sorry for the low points, but that's all I have available at this time. If there's a solution that works, ill try purchase some more points and increase it. Thanks!