Jump to content

Recommended Posts


I'm a student games programmer in my final year of University. I absolutely love KSP as it has given me a greater understanding of the difficulty and science behind real life space missions!

I really want to make a simple 2D space sim game in order to buff out my portfolio (and for fun of course!). I've looked everywhere on the internet and forums for suggested methods of programming realistic gravity physics for orbiting etc. The problem is the methods I try are inconsistent or unrealistic... Looking at KSP it looks like they calculate trajectories and then put the ship on rails effectively so (relatively) wonky game engine physics don't change the orbit paths. 

I was just wondering if anyone knew how Squad achieved this, or if any developers who saw this could shed some light?

Thank you very much,


Link to post
Share on other sites

Just program in the physics?  Should be simple in 2-D.   If you cant do this then your going to need another semester before passing your class.  Everything in system pulls on everything else.   It just results in a vector.  Add all the vectors up.  Ksp most likely ignores everything outside of SOI.    Recalculate a split second later.   I don't know how to program but...

Link to post
Share on other sites

I've programmed in physics. I added gravity using with an altitude Delta using this wiki https://en.wikipedia.org/wiki/Gravity_of_Earth#Altitude but it's not consistent. I then went to try Newton theory physics but the weight range is so large the i cant accurately calculate it within the range of variables. I was just wondering if anyone knew of a method to fake this like KSP?

Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...