class_pinjoint.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the PinJoint.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_PinJoint:
  5. PinJoint
  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. Pin Joint for 3D Shapes.
  12. Properties
  13. ----------
  14. +---------------------------+---------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`params/bias<class_PinJoint_property_params/bias>` |
  16. +---------------------------+---------------------------------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`params/damping<class_PinJoint_property_params/damping>` |
  18. +---------------------------+---------------------------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`params/impulse_clamp<class_PinJoint_property_params/impulse_clamp>` |
  20. +---------------------------+---------------------------------------------------------------------------+
  21. Enumerations
  22. ------------
  23. .. _enum_PinJoint_Param:
  24. .. _class_PinJoint_constant_PARAM_BIAS:
  25. .. _class_PinJoint_constant_PARAM_DAMPING:
  26. .. _class_PinJoint_constant_PARAM_IMPULSE_CLAMP:
  27. enum **Param**:
  28. - **PARAM_BIAS** = **0** --- The force with which the pinned objects stay in positional relation to each other.
  29. The higher, the stronger.
  30. - **PARAM_DAMPING** = **1** --- The force with which the pinned objects stay in velocity relation to each other.
  31. The higher, the stronger.
  32. - **PARAM_IMPULSE_CLAMP** = **2** --- If above 0, this value is the maximum value for an impulse that this Joint produces.
  33. Description
  34. -----------
  35. Pin Joint for 3D Rigid Bodies. It pins 2 bodies (rigid or static) together.
  36. Property Descriptions
  37. ---------------------
  38. .. _class_PinJoint_property_params/bias:
  39. - :ref:`float<class_float>` **params/bias**
  40. +----------+------------------+
  41. | *Setter* | set_param(value) |
  42. +----------+------------------+
  43. | *Getter* | get_param() |
  44. +----------+------------------+
  45. The force with which the pinned objects stay in positional relation to each other.
  46. The higher, the stronger.
  47. .. _class_PinJoint_property_params/damping:
  48. - :ref:`float<class_float>` **params/damping**
  49. +----------+------------------+
  50. | *Setter* | set_param(value) |
  51. +----------+------------------+
  52. | *Getter* | get_param() |
  53. +----------+------------------+
  54. The force with which the pinned objects stay in velocity relation to each other.
  55. The higher, the stronger.
  56. .. _class_PinJoint_property_params/impulse_clamp:
  57. - :ref:`float<class_float>` **params/impulse_clamp**
  58. +----------+------------------+
  59. | *Setter* | set_param(value) |
  60. +----------+------------------+
  61. | *Getter* | get_param() |
  62. +----------+------------------+
  63. If above 0, this value is the maximum value for an impulse that this Joint produces.