#### Archived

This topic is now archived and is closed to further replies.

# Object following object

This topic is 6013 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I''m having trouble solving this problem. Object1(O1) is travelling in a straight line. Object2(O2) is always travelling towards O1. What is O2''s position at any given time? Here''s what I have so far: O2''s dx = cos(atan( (O1y-O2y)/(O1x-O2x) )) O2''s dy = sin(atan( (O1y-O2y)/(O1x-O2x) )) It''s been a few years since I''ve done anything like this (actually, maybe I never did). Any suggestions?

##### Share on other sites
A solution (tractrice)

O1(t, 0)
O2(t - tanh(t), 1 / cosh(t))

Edit: conditions
O1 starts in (0,0), moves along Ox
O2 starts in (0,1), moves at the same speed than O1

Edited by - Fruny on January 29, 2002 1:45:19 PM

##### Share on other sites
Thx for the reply.

I eventually found this:

http://mathworld.wolfram.com/PursuitCurve.html

It is only if the 2 objects are moving at the same speed, but I may be able to come up with something.

1. 1
2. 2
Rutin
21
3. 3
JoeJ
18
4. 4
5. 5
gaxio
12

• 14
• 40
• 23
• 13
• 13
• ### Forum Statistics

• Total Topics
631724
• Total Posts
3001897
×