Chapter 10. Physics

There are many games that are great without any physics or with some basic or completely unrealistic physics. However, there is something attractive in games that have realistic physics. In this chapter, we're going to review how to integrate a physics engine in our game and get some nice physics almost effortlessly, well, at least when compared to implementing the physics simulation yourself.

In this chapter, we're going to review following topics:

  • Creating a physics node and physics bodies
  • Using physics bodies properties
  • Handling and filtering collisions
  • Using joints to connect physics objects
  • Applying forces and impulses

Creating a physics world

In this part of the chapter, we're going to create a new level where the hunter will ...

Get Learning iPhone Game Development with Cocos2D 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.