   Main game loop using a physics engine.
  Hi!How do you implement a game loop with a physics engine?while (!gameover) {get inputtimestep physics engineupdate internalsrender}ORwhile (!gameover) {get inputupdate internalstimestep physics enginerender}Thanks!   
  Take a look at this article: Fix Your Timestep! It goes over one possible solution you might be interested.   ;  So you're basically asking if you should update game-logic and then physics, or physics then game-logic?My update order is:networkinginputsphysicsgameplayrendering   ;Quote:Original post by HodgmanSo you're basically asking if you should update game-logic and then physics, or physics then game-logic?My update order is:networkinginputsphysicsgameplayrenderingThat's what I thought.Thanks.   