d13 Posted October 17, 2017 Share Posted October 17, 2017 Hi Everyone! I'm bust building a semi-realistic solar system model. I found this example extremely helpful: http://www.babylonjs-playground.com/#1UGDQC#5 But, I have a question about how calculate realistic elliptical orbits. I know that an ellitical orbit can be calculated by modifying this line of code: planet.position = new BABYLON.Vector3(10 * Math.sin(alpha), planet.parent.position.y, 10 * Math.cos(alpha)); And, the eccentricity of each planet is well documented: http://www.enchantedlearning.com/subjects/astronomy/glossary/Eccentricity.shtml I know that an ellitical orbit can be calculated by modifying this line of code: But what I don't yet know is how calculate an ellipse based on those numbers. Can anyone help? Thanks! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.