Okay, so I've been working on a program where you add planets to a solar system and try to get them to orbit a sun. What I need, and have been having great troubles with figuring out, is a 'guide line' to show you where your planet is going to be going before you actually click to place it in the level. I'm looking for something kind of like the line on angry birds just before you release your finger that shows you where the bird is going to go. I don't need the actual code for this. just the general idea of how that works would be awesome. any help with this is much appreciated. thank you
2concussions
0
Newbie Poster
Recommended Answers
Jump to PostI guess the orbit of your planet starts with a parabola, to become an ellipse, just calculate the tangent line on the point where your planet actually is.
Or if you know the tangent, calculate a parabola between the actual point and the point where the planet will come in …
Jump to PostIs the problem calculating what the line should be, or is it just drawing it? How are you drawing your solar system so far?
All 5 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
2concussions
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
2concussions
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.