Orbital Mechanics

前端 未结 5 669
情书的邮戳
情书的邮戳 2021-02-03 10:05

Does anyone have an example of implementing Orbital Mechanics (preferably in XNA)? The code I am currently using is below, but it doesn\'t \"feel right\" when it executes. The

5条回答
  •  爱一瞬间的悲伤
    2021-02-03 11:04

    In the last line you're updating the position of the shot. You should be updating the velocity.

    You might want to take a look at the code in this blogpost http://blog.mendeltsiebenga.com/post/Fun-with-planets.aspx No xna, but working orbital mechanics. (although i never got rid of the screen-flicker)

提交回复
热议问题