| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 | :github_url: hide.. DO NOT EDIT THIS FILE!!!.. Generated automatically from Godot engine sources... Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py... XML source: https://github.com/godotengine/godot/tree/master/doc/classes/HingeJoint3D.xml... _class_HingeJoint3D:HingeJoint3D============**Inherits:** :ref:`Joint3D<class_Joint3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body... rst-class:: classref-introduction-groupDescription-----------A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body. For example, Body A can be a :ref:`StaticBody3D<class_StaticBody3D>` representing a door hinge that a :ref:`RigidBody3D<class_RigidBody3D>` rotates around... rst-class:: classref-reftable-groupProperties----------.. table::   :widths: auto   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`angular_limit/bias<class_HingeJoint3D_property_angular_limit/bias>`             | ``0.3``     |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`bool<class_bool>`   | :ref:`angular_limit/enable<class_HingeJoint3D_property_angular_limit/enable>`         | ``false``   |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`angular_limit/lower<class_HingeJoint3D_property_angular_limit/lower>`           | ``-1.5708`` |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`angular_limit/relaxation<class_HingeJoint3D_property_angular_limit/relaxation>` | ``1.0``     |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`angular_limit/softness<class_HingeJoint3D_property_angular_limit/softness>`     | ``0.9``     |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`angular_limit/upper<class_HingeJoint3D_property_angular_limit/upper>`           | ``1.5708``  |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`bool<class_bool>`   | :ref:`motor/enable<class_HingeJoint3D_property_motor/enable>`                         | ``false``   |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`motor/max_impulse<class_HingeJoint3D_property_motor/max_impulse>`               | ``1.0``     |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`motor/target_velocity<class_HingeJoint3D_property_motor/target_velocity>`       | ``1.0``     |   +---------------------------+---------------------------------------------------------------------------------------+-------------+   | :ref:`float<class_float>` | :ref:`params/bias<class_HingeJoint3D_property_params/bias>`                           | ``0.3``     |   +---------------------------+---------------------------------------------------------------------------------------+-------------+.. rst-class:: classref-reftable-groupMethods-------.. table::   :widths: auto   +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+   | :ref:`bool<class_bool>`   | :ref:`get_flag<class_HingeJoint3D_method_get_flag>`\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`\ ) |const|                                 |   +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+   | :ref:`float<class_float>` | :ref:`get_param<class_HingeJoint3D_method_get_param>`\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|                            |   +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+   | |void|                    | :ref:`set_flag<class_HingeJoint3D_method_set_flag>`\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`, enabled\: :ref:`bool<class_bool>`\ )      |   +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+   | |void|                    | :ref:`set_param<class_HingeJoint3D_method_set_param>`\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ ) |   +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+.. rst-class:: classref-section-separator----.. rst-class:: classref-descriptions-groupEnumerations------------.. _enum_HingeJoint3D_Param:.. rst-class:: classref-enumerationenum **Param**: :ref:`🔗<enum_HingeJoint3D_Param>`.. _class_HingeJoint3D_constant_PARAM_BIAS:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_BIAS** = ``0``The speed with which the two bodies get pulled together when they move in different directions... _class_HingeJoint3D_constant_PARAM_LIMIT_UPPER:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_LIMIT_UPPER** = ``1``The maximum rotation. Only active if :ref:`angular_limit/enable<class_HingeJoint3D_property_angular_limit/enable>` is ``true``... _class_HingeJoint3D_constant_PARAM_LIMIT_LOWER:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_LIMIT_LOWER** = ``2``The minimum rotation. Only active if :ref:`angular_limit/enable<class_HingeJoint3D_property_angular_limit/enable>` is ``true``... _class_HingeJoint3D_constant_PARAM_LIMIT_BIAS:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_LIMIT_BIAS** = ``3``The speed with which the rotation across the axis perpendicular to the hinge gets corrected... _class_HingeJoint3D_constant_PARAM_LIMIT_SOFTNESS:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_LIMIT_SOFTNESS** = ``4``**Deprecated:** This property is never used by the engine and is kept for compatibility purpose... _class_HingeJoint3D_constant_PARAM_LIMIT_RELAXATION:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_LIMIT_RELAXATION** = ``5``The lower this value, the more the rotation gets slowed down... _class_HingeJoint3D_constant_PARAM_MOTOR_TARGET_VELOCITY:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_MOTOR_TARGET_VELOCITY** = ``6``Target speed for the motor... _class_HingeJoint3D_constant_PARAM_MOTOR_MAX_IMPULSE:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_MOTOR_MAX_IMPULSE** = ``7``Maximum acceleration for the motor... _class_HingeJoint3D_constant_PARAM_MAX:.. rst-class:: classref-enumeration-constant:ref:`Param<enum_HingeJoint3D_Param>` **PARAM_MAX** = ``8``Represents the size of the :ref:`Param<enum_HingeJoint3D_Param>` enum... rst-class:: classref-item-separator----.. _enum_HingeJoint3D_Flag:.. rst-class:: classref-enumerationenum **Flag**: :ref:`🔗<enum_HingeJoint3D_Flag>`.. _class_HingeJoint3D_constant_FLAG_USE_LIMIT:.. rst-class:: classref-enumeration-constant:ref:`Flag<enum_HingeJoint3D_Flag>` **FLAG_USE_LIMIT** = ``0``If ``true``, the hinges maximum and minimum rotation, defined by :ref:`angular_limit/lower<class_HingeJoint3D_property_angular_limit/lower>` and :ref:`angular_limit/upper<class_HingeJoint3D_property_angular_limit/upper>` has effects... _class_HingeJoint3D_constant_FLAG_ENABLE_MOTOR:.. rst-class:: classref-enumeration-constant:ref:`Flag<enum_HingeJoint3D_Flag>` **FLAG_ENABLE_MOTOR** = ``1``When activated, a motor turns the hinge... _class_HingeJoint3D_constant_FLAG_MAX:.. rst-class:: classref-enumeration-constant:ref:`Flag<enum_HingeJoint3D_Flag>` **FLAG_MAX** = ``2``Represents the size of the :ref:`Flag<enum_HingeJoint3D_Flag>` enum... rst-class:: classref-section-separator----.. rst-class:: classref-descriptions-groupProperty Descriptions---------------------.. _class_HingeJoint3D_property_angular_limit/bias:.. rst-class:: classref-property:ref:`float<class_float>` **angular_limit/bias** = ``0.3`` :ref:`🔗<class_HingeJoint3D_property_angular_limit/bias>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|The speed with which the rotation across the axis perpendicular to the hinge gets corrected... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_angular_limit/enable:.. rst-class:: classref-property:ref:`bool<class_bool>` **angular_limit/enable** = ``false`` :ref:`🔗<class_HingeJoint3D_property_angular_limit/enable>`.. rst-class:: classref-property-setget- |void| **set_flag**\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`, enabled\: :ref:`bool<class_bool>`\ )- :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`\ ) |const|If ``true``, the hinges maximum and minimum rotation, defined by :ref:`angular_limit/lower<class_HingeJoint3D_property_angular_limit/lower>` and :ref:`angular_limit/upper<class_HingeJoint3D_property_angular_limit/upper>` has effects... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_angular_limit/lower:.. rst-class:: classref-property:ref:`float<class_float>` **angular_limit/lower** = ``-1.5708`` :ref:`🔗<class_HingeJoint3D_property_angular_limit/lower>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|The minimum rotation. Only active if :ref:`angular_limit/enable<class_HingeJoint3D_property_angular_limit/enable>` is ``true``... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_angular_limit/relaxation:.. rst-class:: classref-property:ref:`float<class_float>` **angular_limit/relaxation** = ``1.0`` :ref:`🔗<class_HingeJoint3D_property_angular_limit/relaxation>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|The lower this value, the more the rotation gets slowed down... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_angular_limit/softness:.. rst-class:: classref-property:ref:`float<class_float>` **angular_limit/softness** = ``0.9`` :ref:`🔗<class_HingeJoint3D_property_angular_limit/softness>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|**Deprecated:** This property is never set by the engine and is kept for compatibility purposes... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_angular_limit/upper:.. rst-class:: classref-property:ref:`float<class_float>` **angular_limit/upper** = ``1.5708`` :ref:`🔗<class_HingeJoint3D_property_angular_limit/upper>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|The maximum rotation. Only active if :ref:`angular_limit/enable<class_HingeJoint3D_property_angular_limit/enable>` is ``true``... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_motor/enable:.. rst-class:: classref-property:ref:`bool<class_bool>` **motor/enable** = ``false`` :ref:`🔗<class_HingeJoint3D_property_motor/enable>`.. rst-class:: classref-property-setget- |void| **set_flag**\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`, enabled\: :ref:`bool<class_bool>`\ )- :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`\ ) |const|When activated, a motor turns the hinge... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_motor/max_impulse:.. rst-class:: classref-property:ref:`float<class_float>` **motor/max_impulse** = ``1.0`` :ref:`🔗<class_HingeJoint3D_property_motor/max_impulse>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|Maximum acceleration for the motor... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_motor/target_velocity:.. rst-class:: classref-property:ref:`float<class_float>` **motor/target_velocity** = ``1.0`` :ref:`🔗<class_HingeJoint3D_property_motor/target_velocity>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|Target speed for the motor... rst-class:: classref-item-separator----.. _class_HingeJoint3D_property_params/bias:.. rst-class:: classref-property:ref:`float<class_float>` **params/bias** = ``0.3`` :ref:`🔗<class_HingeJoint3D_property_params/bias>`.. rst-class:: classref-property-setget- |void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ )- :ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const|The speed with which the two bodies get pulled together when they move in different directions... rst-class:: classref-section-separator----.. rst-class:: classref-descriptions-groupMethod Descriptions-------------------.. _class_HingeJoint3D_method_get_flag:.. rst-class:: classref-method:ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`\ ) |const| :ref:`🔗<class_HingeJoint3D_method_get_flag>`Returns the value of the specified flag... rst-class:: classref-item-separator----.. _class_HingeJoint3D_method_get_param:.. rst-class:: classref-method:ref:`float<class_float>` **get_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`\ ) |const| :ref:`🔗<class_HingeJoint3D_method_get_param>`Returns the value of the specified parameter... rst-class:: classref-item-separator----.. _class_HingeJoint3D_method_set_flag:.. rst-class:: classref-method|void| **set_flag**\ (\ flag\: :ref:`Flag<enum_HingeJoint3D_Flag>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_HingeJoint3D_method_set_flag>`If ``true``, enables the specified flag... rst-class:: classref-item-separator----.. _class_HingeJoint3D_method_set_param:.. rst-class:: classref-method|void| **set_param**\ (\ param\: :ref:`Param<enum_HingeJoint3D_Param>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_HingeJoint3D_method_set_param>`Sets the value of the specified parameter... |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`.. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`.. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`.. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`.. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`.. |void| replace:: :abbr:`void (No return value.)`
 |