Finding the Collision Point of Two Objects Using Velocity and Position

Click For Summary
SUMMARY

The discussion focuses on calculating the collision point of two objects based on their velocities and positions. It establishes that the time until collision can be derived from the equations distance1/vel1 = distance2/vel2, leading to a linear relationship between the starting positions and velocities. The importance of consistent notation is emphasized, suggesting the use of coordinate pairs for positions and vector notation for velocities. Ultimately, the discussion outlines a method to derive two linear equations to solve for the time of collision and predict the collision point.

PREREQUISITES
  • Understanding of basic physics concepts such as velocity and distance.
  • Familiarity with mathematical equations involving linear equations.
  • Knowledge of vector notation and coordinate systems.
  • Ability to manipulate algebraic expressions to solve for unknowns.
NEXT STEPS
  • Study how to derive linear equations from motion equations in physics.
  • Learn about vector representation of velocity in physics.
  • Explore collision detection algorithms in computer graphics.
  • Investigate numerical methods for solving systems of equations.
USEFUL FOR

Physics students, game developers, and anyone involved in simulations or animations requiring collision detection and response.

HuePig
Messages
1
Reaction score
0
I have 2 objects:
Obj1 have a Velocity of vel1 and position of (x1, y1)
Obj2 have a Velocity of vel2 and position of (x2, y2)
Using time = distance / velocity knowing that they will collide.. can I assume distance1 / vel1 = distance2 / vel2 ?
distance formula = sqrt((x - x1^2) + (y - y1^2))
Can I find the collision point(x, y) from the given and how?
 
Physics news on Phys.org
Yes, ##\frac{{distance}_1}{{vel}_1}## will be equal to ##\frac{{distance}_2}{{vel}_2}## because both will be equal to elapsed time until the collision. But that does not help you much. Mathematically, the solution set of collision positions that fit that equation will be a line between the starting point of object1 and the starting point of object 2 so that the ratio of the distance to each starting point is the same as the ratio of the velocities.

Edit: There is the minor problem that you are dividing a scalar by a vector yielding a scalar. But one assumes that you are dividing by speed rather than velocity. So that concern goes away.

There are a number of ways to solve this problem. The first step is a better set of variable names. You have position as (x_1,y_1) and (x_2,y_2). But you have velocity as vel_1 and vel_2. That's inconsistent -- expressing position in terms of coordinate pairs and velocity in terms of vectors. Pick one notation and stick to it.

[Sometimes simply coming up with a notation that works so that you can write down the relevant equations is 90% of the problem]

For instance, how about position as (x1, y1) and (x2, y2) and velocity as (vx1,vy1) and (vx2, vy2).

Then you can write a formulas for the x coordinate of object 1 as a function of time (t), the y coordinate of object 1 as a function of time, the x coordinate of object 2 as a function of time and the y coordinate of object 2 as a function of time. You know that at the time of the collision, the x coordinates will be equal and the y coordinates will be equal. That leads to two equations. Write them down.

Two linear equations in one unknown... You should be able to solve at least one of them for the time (t) at which the collision occurs. Given starting position, velocity and time until the collision, it should them be possible to predict the position of the collision easily.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K