What is the solution to finding the time when two objects collide in 2d space?

  • Thread starter Thread starter adoado
  • Start date Start date
  • Tags Tags
    Motion
AI Thread Summary
To determine if two objects in 2D space collide, their positions are defined by circular motion equations. The objects, represented as circles with radii r1 and r2, will only collide if their radii are equal (r1 = r2). The user is attempting to isolate time in the equations to find potential collision points. However, the fundamental condition for collision is based on the equality of their radii. Understanding this relationship simplifies the problem significantly for the user's game development.
adoado
Messages
71
Reaction score
0
Hello all ^^

I have two objects moving in 2d space, their positions given by:

x1 = r1*cos(s1 * time)
y1 = r1*sin(s1 * time)

and

x2 = r2*cos(s2 * time)
y2 = r2*sin(s2 * time)

Essentially, I want to see if they collide or exist in the same place at any time. So I am guessing I need to solve twice for both x and y collisions.

I did this, but am stuck isolating time (or solving the problem :P)...

r1*cos(s1 * time) = r2*cos(s2 * time)

I am trying to isolate the time they collide (if they do)...

I am not too good at maths, and the answer is probably really simple, but any help is greatly appreciated! This is not homework, its for a hobby computer game I am trying to make.

Cheers,
Adrian
 
Mathematics news on Phys.org
adoado said:
I have two objects moving in 2d space, their positions given by:

x1 = r1*cos(s1 * time)
y1 = r1*sin(s1 * time)

and

x2 = r2*cos(s2 * time)
y2 = r2*sin(s2 * time)

Essentially, I want to see if they collide or exist in the same place at any time.

Hello Adrian! :smile:

These are circles, with radius r1 and r2, respectively, and both centred at the origin (0,0).

So the objects won't collide unless r1 = r2 :wink:
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top