gm-docs-parser 1.0.0

A collection of typings for GameMaker Studio 2 manual pages
Documentation
<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>

  <script type="text/javascript" language="JavaScript">
    //<![CDATA[
    function reDo() {
      if (innerWidth != origWidth || innerHeight != origHeight)
        location.reload();
    }
    if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
      origWidth = innerWidth;
      origHeight = innerHeight;
      onresize = reDo;
    }
    onerror = null;
  //]]>
  </script>
  <style type="text/css">/*<![CDATA[*/

    < !-- div.WebHelpPopupMenu {
      position: absolute;
      left: 0px;
      top: 0px;
      z-index: 4;
      visibility: hidden;
    }

    p.WebHelpNavBar {
      text-align: right;
    }

    -->
  
/*]]>*/</style>

  <script type="text/javascript">//<![CDATA[

    gRootRelPath = "../../../..";
    gCommonRootRelPath = "../../../..";
    gTopicId = "9.2.11.4";
  
//]]></script>

  <script type="text/javascript" src="../../../../template/scripts/rh.min.js"></script>
  <script type="text/javascript" src="../../../../template/scripts/common.min.js"></script>
  <script type="text/javascript" src="../../../../template/scripts/topic.min.js"></script>
  <script type="text/javascript" src="../../../../template/scripts/topicwidgets.min.js"></script>
<script type="text/javascript" src="../../../../whxdata/projectsettings.js"></script>
  <link rel="stylesheet" type="text/css" href="../../../../template/styles/topic.min.css"/>
  <link rel="stylesheet" type="text/css" href="../../../../template/Charcoal_Grey/topicheader.css"/>
  <meta name="topic-status" content="Draft"/>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Joints</title>
  <meta name="generator" content="Adobe RoboHelp 2019"/>
  <link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css"/>
  <meta name="rh-authors" content="Mark Alexander"/>
  <meta name="topic-comment" content="Reference section for Physics Joint functions"/>
  <meta name="rh-index-keywords" content=""/>
  <meta name="search-keywords" content="Joints"/>
</head>

<body>
  <div class="topic-header rh-hide" id="rh-topic-header" onclick="rh._.goToFullLayout()">
    <div class="logo">
    </div>
    <div class="nav">
      <div class="title" title="Joints">
        <span>Joints</span>
      </div>
      <div class="gotohome" title="Click here to see this page in full context">
        <span>Click here to see this page in full context</span>
      </div>
    </div>
  </div>
  <div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div>



  <!--<div class="body-scroll" style="top: 150px;">-->
  <h1>Joints</h1>
  <p>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.</p>
  <p class="note"><b>NOTE</b>: 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 <a href="physics_joint_gear_create.htm">gear joint</a>)
    as this is dealt with automatically by GameMaker Studio.</p>
  <p>The following pages explain the available joints and how they can be created:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="physics_joint_distance_create.htm">physics_joint_distance_create</a></li>
    <li><a href="physics_joint_revolute_create.htm">physics_joint_revolute_create</a></li>
    <li><a href="physics_joint_prismatic_create.htm">physics_joint_prismatic_create</a></li>
    <li><a href="physics_joint_pulley_create.htm">physics_joint_pulley_create</a></li>
    <li><a href="physics_joint_gear_create.htm">physics_joint_gear_create</a></li>
    <li><a href="physics_joint_rope_create.htm">physics_joint_rope_create</a></li>
    <li><a href="physics_joint_wheel_create.htm">physics_joint_wheel_create</a></li>
    <li><a href="physics_joint_weld_create.htm">physics_joint_weld_create</a></li>
    <li><a href="physics_joint_friction_create.htm">physics_joint_friction_create</a></li>
    <li><a href="physics_joint_delete.htm">physics_joint_delete</a></li>
  </ul>
  <p> </p>
  <p>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:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="physics_joint_enable_motor.htm">physics_joint_enable_motor</a></li>
    <li><a href="physics_joint_get_value.htm">physics_joint_get_value</a></li>
    <li><a href="physics_joint_set_value.htm">physics_joint_set_value</a></li>
  </ul>
  <p> </p>
  <p>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:</p>
  <ul class="colour">
    <li><a href="Physics_Joint_Constants.htm">Physics Joint Constants</a></li>
  </ul>
  <p> </p>
  <p> </p>
  <p> </p>
  <div class="footer">
    <div class="buttons">
      <div class="clear">
        <div style="float:left">Back: <a href="../Physics.htm">Physics</a></div>
        <div style="float:right">Next: <a href="../Soft_Body_Particles/Soft_Body_Particles.htm">Soft Body Particles</a></div>
      </div>
    </div>
    <h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
  </div>
  <!-- KEYWORDS
Joints
-->
  <!-- TAGS
physics_joint_functions
-->

</body></html>