关节

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.

注意: 关节不需要在删除所连接的实例的时候被删除,也不需要在房间结束时删除。Except in very specific cases (see the gear joint) as this is dealt with automatically by GameMaker Studio.

The following pages explain the available joints and how they can be created:


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. 物理关节常量


上一页: 物理
下一页:柔体粒子
© Copyright YoYo Games Ltd. 2018 All Rights Reserved