Move object on a line

Fred_FS
Posts: 10
Joined: Sun Sep 27, 2009 9:56 am

Move object on a line

Post by Fred_FS »

Hello!

I have got an object which is supposed to move on a line. This line is as usual defined by a point and a directional vector. But my problem ist that sometimes my object moves away from this line(e.g. because other objects are touching this object). It is even possible that the direction of the line changes. So the object has to be at the beginning on one line, but later on another. But the object moves sometimes a bit to far, until it changes its direction.
So what would you do, to move an object on a line?

Thanks for your help!
Fred_FS