How physics are coded into video games

245 views

How physics are coded into video games

In: 5

5 Answers

Anonymous 0 Comments

A game has 3 main things it does endlessly while youbare playing:

1. Update all the things
2. Apply physics resulting from those changes
3. Draw the updates state of the game to the screen

These things happen in this order but at different intervals. These intervals vary depending on the details of the game, but they are happening many many times per second.

A simple example:

Player pushes ‘Right’ on their controller. In step 1 Mawio moves to the right.and bumps onto a Woomba.

In step 2, Mawios collision with the Woomba is processed and the Woomba sent flying accordingly.

Step 3 you see the flying Goomba on your screen.

You are viewing 1 out of 5 answers, click here to view all answers.