In the GameMaker Studio 2 physics world, joints are used to constrain instances to the world or to each other. Typical examples in games include ragdolls, teeters, and pulleys, but joints can be combined in many different ways to create interesting motions or add realism to your game world.

NOTE: A joint does not need to be deleted when you destroy an instance joined to another instance, nor does it need to be deleted at the end of a room. Except in very specific cases (see the gear joint) as this is dealt with automatically by GameMaker Studio.

Once a joint has been created, it can often be necessary to know its properties in order to change them at specific times in your game. The following functions (with their corresponding internal constants) are available to test and change joint values:

Additionally, you can use a number of constants from within GameMaker Studio 2 functions to get (or set) different properties of certain joints. These constants can all be found in the following section:

  1. Physics Joint Constants