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
Jump to Post
I 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 …
All 5 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.