Summary

Throughout this chapter, you learned how to create a physics simulation, add bodies to the simulation, set the gravity of the world with the accelerometer, handle collisions, and even use the simulation for just collision detection.

When it comes to really complex physics engine mechanics, such as ropes, joints, and pivots, the Cocos2d documentation at http://www.cocos2d-swift.org/docs/api/index.html explains a lot. At the time of writing this book, there are very few (if any) tutorials on such complex mechanics available.

In the next chapter, you'll learn about sound in Cocos2d and some of the cool things you can do to sound effects within the engine.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.251.70