O'Reilly logo

iOS Game Programming Cookbook by Bhanu Birani, Chhavi Vaishnav

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Physics joints

We have already seen lots of interesting features of the physics engine. However, we can make our games even more interesting by connecting the physics bodies with each other using joints. All the physics simulation and forces will be applied on the bodies after considering the way they are joined together.

Getting ready

There are various ways of joining two physics bodies together. They vary based on the places and the location of the bodies that are joined. Joints are divided into the following types based on the ways they connect bodies with each other:

  • Pin Joint: This type of joint joins/pins two physics together such that they both can independently rotate around their anchor point. The joint will look something similar to following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required