Derivation of motion equations for collision detection

Click For Summary
SUMMARY

The discussion focuses on the derivation of motion equations for collision detection in a car-accident prediction model. The key equations include the calculation of minimum time (mintime) and minimum distance (mindist) between two moving points, derived using Pythagorean principles. The mintime formula is explicitly defined as a function of initial positions and speeds, while the mindist is calculated by evaluating the distance formula at the mintime. The discussion emphasizes the importance of understanding these derivations for effective collision prediction.

PREREQUISITES
  • Understanding of kinematics and motion equations
  • Familiarity with Pythagorean theorem
  • Basic knowledge of calculus, particularly derivatives
  • Experience with mathematical modeling in predictive analytics
NEXT STEPS
  • Study the derivation of motion equations in physics
  • Learn about calculus applications in motion analysis
  • Explore advanced collision detection algorithms in computer graphics
  • Investigate predictive modeling techniques for accident analysis
USEFUL FOR

Data scientists, automotive engineers, and software developers working on predictive models for collision detection and accident prevention.

M Omran
Messages
2
Reaction score
1
Dear all,

I am working on a car-accident prediction model. I found the following equations here that worked in my model. However, I could not figure out how the equations were derived. Could anyone help me in understanding the derivation of the mintime and mindist equations (Steps 3 and 5 below).

1. For each car/object/point, you know the following:

initial x position
speed in x direction
initial y position
speed in y direction

2. For two points a and b then, let's define the following variables:

xa0: initial x position of point A
xat: speed in x direction of point A
ya0: initial y position of point A
yat: speed in y direction of point A

xb0 initial x position of point B
xbt speed in x direction of point B
yb0 initial y position of point B
ybt speed in y direction of point B

3. The distance between to points is given by Pythagoras. By expressing this distance as a function of time (based on the given variables above), then we can solve for the minimum possible distance. If we do this then we get a formula which will give us the time of minimum distance. The result is the following formula:

mintime =
-(xa0*xat - xat*xb0 - (xa0 - xb0)*xbt + ya0*yat - yat*yb0 - (ya0 - yb0)*ybt)
/
(xat^2 - 2*xat*xbt + xbt^2 + yat^2 - 2*yat*ybt + ybt^2)

4. The distance at any time t is given by the following expression:

dist = sqrt((t*xat - t*xbt + xa0 - xb0)^2 + (t*yat - t*ybt + ya0 - yb0)^2)

It depends on the given variables in addition to t.

5. To calculate the minimum distance then, you just evaluate it using the minimum time you calculated previously. So with t = mintime:

mindist = sqrt(
(mintime*xat - mintime*xbt + xa0 - xb0)^2
+
(mintime*yat - mintime*ybt + ya0 - yb0)^2
)

Many thanks in advance
 
Physics news on Phys.org
(4) is clear?
Calculate its time-derivative. At the minimal distance, the derivative is zero. That gives you an equation that can be solved to find the time.

(5) is just plugging the time from (3) into (4) and simplification of the expression.
 
  • Like
Likes   Reactions: M Omran
mfb said:
(4) is clear?
Calculate its time-derivative. At the minimal distance, the derivative is zero. That gives you an equation that can be solved to find the time.

(5) is just plugging the time from (3) into (4) and simplification of the expression.

Thanks a million for the crystal clear answer. It is much appreciated.
 
  • Like
Likes   Reactions: mfb

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 53 ·
2
Replies
53
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K