Abstract
There are many games for iOS that utilize a physics simulator to control the motion of actors. In general, this usually means some library is included in the game that describes the motion of bodies in a realistic way, using real physics formulas and concepts like mass, momentum, velocity, and other principles used to describe the real world. Do physics engines provide a perfect simulation of how objects move? Not really. For starters, we will be working with the library Box2D. As the name implies, it simulates the interaction of two-dimensional (2D) bodies, which is clearly not an accurate representation of reality. However, Box2D does provide a level of realism that is good enough to trick our monkey brains into believing that things in the game are moving in a realistic way.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Lucas Jordan
About this chapter
Cite this chapter
Jordan, L. (2012). Physics!. In: Beginning iOS6 Games Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4423-3_13
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4423-3_13
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4422-6
Online ISBN: 978-1-4302-4423-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)