Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Wang, W., Walcott, T. (2024). Adding Physics. In: Programming for Game Design. Apress, Berkeley, CA. https://doi.org/10.1007/979-8-8688-0190-7_17
Download citation
DOI: https://doi.org/10.1007/979-8-8688-0190-7_17
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 979-8-8688-0189-1
Online ISBN: 979-8-8688-0190-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books