Game physics uses the laws of physics in video games to determine how realistic an object is to the player. In other words, it helps the game look more natural, smooth, and more realistic when playing.
Most people assume game physics as something game developers code in their video games. That is not always true. Video games need instructions on what to do. They do not process equations repeatedly or solve variables. But instead, they compute simple physics equations that can imitate real physics.
The physics of the game is simply a way for players to understand what is going on in the game so that they can react accordingly. For example, when a helicopter takes off in a game, it's not taking off against gravity. But instead, the gravity simulation used in the video game switches off when you press the "take-off" button.
Programming physics can be simple or complex, depending on the game developers and what they hope to achieve. However, whether a game is complex or needs middleware to take care of the computations, the physics of video games fall into two major groups: rigid body simulation and soft body simulation.
They are the forces which react to solid objects. They use it mostly in 2D and 3D video games.
The soft body physics are the physical forces that act on deformable objects like a flag. It isn't straightforward to simulate soft-body physics, so developers use it less. But it all depends on the video game. Some games do not even use it at all.
Regardless of the type of simulations a video game developer uses, the result is to make video games more fun to play. Even though realism in gameplay does not totally affect the player's engagement, game physics should not be optional. In fact, game designers should use it one way or the other or else the gameplay will be chaotic with less fundamental rules. Game developers can bend the physics of the game to make the video game more fun and exciting.