Adding Physics
摘要
Physics in a video game lets objects collide, bounce, slide, or ricochet off each other. In addition, physics lets objects work with gravity that forces objects to fall down or even fall upward if you reverse gravity as a negative number. By learning how to add physics to a game, you can create barriers, platforms, walls, and collisions between different objects.