class_hingejoint.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the HingeJoint.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_HingeJoint:
  5. HingeJoint
  6. ==========
  7. **Inherits:** :ref:`Joint<class_joint>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Functions
  12. ----------------
  13. +----------------------------+-------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`bool<class_bool>` | :ref:`get_flag<class_HingeJoint_get_flag>` **(** :ref:`int<class_int>` flag **)** const |
  15. +----------------------------+-------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`get_param<class_HingeJoint_get_param>` **(** :ref:`int<class_int>` param **)** const |
  17. +----------------------------+-------------------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`set_flag<class_HingeJoint_set_flag>` **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)** |
  19. +----------------------------+-------------------------------------------------------------------------------------------------------------------------+
  20. | void | :ref:`set_param<class_HingeJoint_set_param>` **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)** |
  21. +----------------------------+-------------------------------------------------------------------------------------------------------------------------+
  22. Member Variables
  23. ----------------
  24. - :ref:`float<class_float>` **angular_limit/bias**
  25. - :ref:`bool<class_bool>` **angular_limit/enable**
  26. - :ref:`float<class_float>` **angular_limit/lower**
  27. - :ref:`float<class_float>` **angular_limit/relaxation**
  28. - :ref:`float<class_float>` **angular_limit/softness**
  29. - :ref:`float<class_float>` **angular_limit/upper**
  30. - :ref:`bool<class_bool>` **motor/enable**
  31. - :ref:`float<class_float>` **motor/max_impulse**
  32. - :ref:`float<class_float>` **motor/target_velocity**
  33. - :ref:`float<class_float>` **params/bias**
  34. Numeric Constants
  35. -----------------
  36. - **PARAM_BIAS** = **0**
  37. - **PARAM_LIMIT_UPPER** = **1**
  38. - **PARAM_LIMIT_LOWER** = **2**
  39. - **PARAM_LIMIT_BIAS** = **3**
  40. - **PARAM_LIMIT_SOFTNESS** = **4**
  41. - **PARAM_LIMIT_RELAXATION** = **5**
  42. - **PARAM_MOTOR_TARGET_VELOCITY** = **6**
  43. - **PARAM_MOTOR_MAX_IMPULSE** = **7**
  44. - **PARAM_MAX** = **8**
  45. - **FLAG_USE_LIMIT** = **0**
  46. - **FLAG_ENABLE_MOTOR** = **1**
  47. - **FLAG_MAX** = **2**
  48. Member Function Description
  49. ---------------------------
  50. .. _class_HingeJoint_get_flag:
  51. - :ref:`bool<class_bool>` **get_flag** **(** :ref:`int<class_int>` flag **)** const
  52. .. _class_HingeJoint_get_param:
  53. - :ref:`float<class_float>` **get_param** **(** :ref:`int<class_int>` param **)** const
  54. .. _class_HingeJoint_set_flag:
  55. - void **set_flag** **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)**
  56. .. _class_HingeJoint_set_param:
  57. - void **set_param** **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)**