How physics in games work

720 views

In a game like GTA, for example. You have a huge variety of vehicles, including flying cars and bikes. How does it work? Is it arbritary (“this will fly, period”) or they design It to fly in that universe, according to those rules, Just like they would do in real life?

In: Physics

4 Answers

Anonymous 0 Comments

Often, they will literally just make objects flies. It’s rare to even see calculations of even force interaction. Most objects in a typical 3D care about 3 informations: positions and velocity, and collision detection. Position and velocity are simple enough. Collision detection is already very hard to do accurately, so the game often cheat even this. To make an object flies, for example, simply change its velocity values.

Acceleration/momentum get involved once the game need to model high speed movement where it would looks weird to have abrupt velocity changes.

Actual simulation of collision force do happen in game physics, but they’re rarely used because they’re very wonky. Unless you’re playing a game where the point is physics simulation, chances you won’t see any of this at all, or maybe only when it doesn’t matter (ragdoll).

Light are either simulated in a very approximated manner. Raytracing is rare, as of now, even then they’re still very crude approximation of light.

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