Physics doesn’t really have a different coding method compared with pathfinding, shooting, enemy AI, etc. It’s just code that does math that happens to simulate physics.
Sure there are specific methods of doing so, but that can’t be answered without knowing what is the game is (programming language, libraries used, 2D or 3D, realistic or not, system specs, setting…).
Latest Answers