Path follower
Author |
Message |
antiLogic
|
Posted: Wed Jun 03, 2009 1:23 pm Post subject: Path follower |
|
|
What is it you are trying to achieve?
<I'm trying to get an image of a plane with transparency to follow a line defined by a user's mouse path.>
What is the problem you are having?
<The method I am using is very buggy, hopefully there's a better way>
Describe what you have tried to solve this problem
<In my program, I have an array that records a point of the line dragged by the user's mouse every 200 ms. The points are connected with a line. I have a procedure that calculates all the points on this line and stores it in an array. The plane is supposed to move along these points and assume the correct angle. Ie. if the line is going towards the top, the nose of the plane is to point up.>
Please specify what version of Turing you are using
4.1.1
Thanks for your help. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
isaiahk9
|
Posted: Wed Jun 03, 2009 2:24 pm Post subject: RE:Path follower |
|
|
What's wrong with the method you're currently using? If done properly it sounds legit. |
|
|
|
|
|
tjmoore1993
|
Posted: Wed Jun 03, 2009 2:48 pm Post subject: RE:Path follower |
|
|
Well, if your plane needs help detecting angles, try doing an if statement to figure out if the new X value is greater then the old one if so then point up? |
|
|
|
|
|
antiLogic
|
Posted: Wed Jun 03, 2009 4:20 pm Post subject: RE:Path follower |
|
|
Perhaps I did it improperly. I will post up the code soon and hopefully somebody can help me decipher what is wrong. |
|
|
|
|
|
|
|