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

  • Thread starter adoado
  • Start date
  • Tags
    Motion
In summary, the conversation discusses the positions of two objects moving in 2d space and the possibility of them colliding or existing in the same place at any time. The equations for the objects' positions are given and it is noted that the objects must have the same radius in order to collide. Isolating the time of collision is also mentioned, but the speaker admits to struggling with the math. The conversation concludes with the clarification that this is for a hobby computer game.
  • #1
adoado
72
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
  • #2
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:
 

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

What is the difference between elastic and inelastic collisions?

Elastic collisions occur when the total kinetic energy of the colliding objects is conserved, meaning that the objects bounce off of each other without any loss of energy. In inelastic collisions, some of the kinetic energy is transformed into other forms of energy, such as heat or sound, and is not conserved.

How is momentum conserved in a collision?

Momentum is a property of moving objects that is conserved in collisions. This means that the total momentum of the objects before and after the collision is the same. In other words, the total mass and velocity of the objects remain constant.

Can the velocity of an object change after a collision?

Yes, the velocity of an object can change after a collision depending on the type of collision and the mass and velocity of the objects involved. In elastic collisions, the velocities of the objects may change in direction, but the total velocity remains the same. In inelastic collisions, the velocities may change in both magnitude and direction.

What factors affect the outcome of a collision?

The outcome of a collision is affected by several factors, including the masses and velocities of the objects, the type of collision (elastic or inelastic), and any external forces acting on the objects. The angle of collision and the presence of friction can also impact the outcome.

How can we calculate the final velocities of objects after a collision?

The final velocities of objects after a collision can be calculated using the laws of conservation of momentum and energy. By setting up equations for the initial and final momenta and energy of the objects, we can solve for the final velocities. This calculation may be more complex for inelastic collisions due to the loss of energy, but the same principles apply.

Back
Top