Object following object
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?
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement