Sharky
In between x and (x+δx)
- Joined
- May 22, 2004
- Messages
- 165
- Gender
- Male
- HSC
- 2004
Consider a 2D-plane without the effects of gravity.
A person is standing at A(xa,ya) and another person is standing at B(xb,yb). The person at A throws a baseball with velocity Va at an angle of ATheta. The person at B fires a bullet with velocity Vb at an angle BTheta, such that the bullet collides with the baseball after t seconds at the point C(xc,yc).
Here is a summary of what we have:
KNOWNS:
=======
Positions A(xa,ya) and B(xb,yb)
Velocities Va and Vb
Angle ATheta
UNKNOWNS:
=========
Position C(xc,yc)
Time t
Angle BTheta
The question is, given that we know where both people are at and how fast their projectiles go at and the angle person A fires at, how do we find what angle person B will need to fire at and where they will subsequently collide.
There should theoretically be enough information to work it out, and it makes sense that there is only one solution.
Here's my starting contribution...
xa + Va * t * cos(ATheta) = xc
xb + Vb * t * cos(BTheta) = xc
ya + Va * t * sin(ATheta) = yc
yb + Vb * t * sin(BTheta) = yc
A person is standing at A(xa,ya) and another person is standing at B(xb,yb). The person at A throws a baseball with velocity Va at an angle of ATheta. The person at B fires a bullet with velocity Vb at an angle BTheta, such that the bullet collides with the baseball after t seconds at the point C(xc,yc).
Here is a summary of what we have:
KNOWNS:
=======
Positions A(xa,ya) and B(xb,yb)
Velocities Va and Vb
Angle ATheta
UNKNOWNS:
=========
Position C(xc,yc)
Time t
Angle BTheta
The question is, given that we know where both people are at and how fast their projectiles go at and the angle person A fires at, how do we find what angle person B will need to fire at and where they will subsequently collide.
There should theoretically be enough information to work it out, and it makes sense that there is only one solution.
Here's my starting contribution...
xa + Va * t * cos(ATheta) = xc
xb + Vb * t * cos(BTheta) = xc
ya + Va * t * sin(ATheta) = yc
yb + Vb * t * sin(BTheta) = yc