Skip to main content
  • 414 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics