Book Image

Learning iPhone Game Development with Cocos2D 3.0

By : Kirill Muzykov
Book Image

Learning iPhone Game Development with Cocos2D 3.0

By: Kirill Muzykov

Overview of this book

Table of Contents (19 chapters)
Learning iPhone Game Development with Cocos2D 3.0
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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