Archived

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

Object following object

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
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 this post


Link to post
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.

Share this post


Link to post
Share on other sites