.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_Joint2D: Joint2D ======= **Inherits:** :ref:`Node2D` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`PinJoint2D`, :ref:`DampedSpringJoint2D`, :ref:`GrooveJoint2D` **Category:** Core Brief Description ----------------- Base node for all joint constraints in 2D physics. Member Functions ---------------- +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_bias` **(** **)** const | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_exclude_nodes_from_collision` **(** **)** const | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NodePath` | :ref:`get_node_a` **(** **)** const | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NodePath` | :ref:`get_node_b` **(** **)** const | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_bias` **(** :ref:`float` bias **)** | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_exclude_nodes_from_collision` **(** :ref:`bool` enable **)** | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_node_a` **(** :ref:`NodePath` node **)** | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_node_b` **(** :ref:`NodePath` node **)** | +----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`float` **bias** - :ref:`bool` **disable_collision** - :ref:`NodePath` **node_a** - :ref:`NodePath` **node_b** Description ----------- Base node for all joint constraints in 2D physics. Joints take 2 bodies and apply a custom constraint. Member Function Description --------------------------- .. _class_Joint2D_get_bias: - :ref:`float` **get_bias** **(** **)** const .. _class_Joint2D_get_exclude_nodes_from_collision: - :ref:`bool` **get_exclude_nodes_from_collision** **(** **)** const .. _class_Joint2D_get_node_a: - :ref:`NodePath` **get_node_a** **(** **)** const Return the path to the A node for the joint. .. _class_Joint2D_get_node_b: - :ref:`NodePath` **get_node_b** **(** **)** const Return the path to the B node for the joint. .. _class_Joint2D_set_bias: - void **set_bias** **(** :ref:`float` bias **)** .. _class_Joint2D_set_exclude_nodes_from_collision: - void **set_exclude_nodes_from_collision** **(** :ref:`bool` enable **)** .. _class_Joint2D_set_node_a: - void **set_node_a** **(** :ref:`NodePath` node **)** Set the path to the A node for the joint. Must be of type :ref:`PhysicsBody2D`. .. _class_Joint2D_set_node_b: - void **set_node_b** **(** :ref:`NodePath` node **)** Set the path to the B node for the joint. Must be of type :ref:`PhysicsBody2D`.