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

  • Context: Undergrad 
  • Thread starter Thread starter adoado
  • Start date Start date
  • Tags Tags
    Motion
Click For Summary
SUMMARY

The discussion centers on determining the collision time of two circular objects in 2D space, defined by their parametric equations: x1 = r1*cos(s1 * time), y1 = r1*sin(s1 * time) and x2 = r2*cos(s2 * time), y2 = r2*sin(s2 * time). The key conclusion is that for the two circles to collide, their radii must be equal (r1 = r2). The user, Adrian, seeks assistance in isolating time from the collision equations but is informed that the collision condition is primarily dependent on the equality of the radii.

PREREQUISITES
  • Understanding of parametric equations in 2D space
  • Basic knowledge of trigonometric functions (sine and cosine)
  • Familiarity with the concept of circular motion
  • Ability to solve algebraic equations
NEXT STEPS
  • Study the mathematical principles of parametric equations in 2D geometry
  • Learn about collision detection algorithms for circular objects
  • Explore trigonometric identities and their applications in solving equations
  • Investigate numerical methods for finding roots of equations involving time
USEFUL FOR

Game developers, mathematicians, and hobbyists interested in physics simulations and collision detection in 2D environments.

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
 
Physics 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:
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
Replies
8
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
11K
  • · Replies 1 ·
Replies
1
Views
2K