class_joint.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Joint.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Joint:
  6. Joint
  7. =====
  8. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`ConeTwistJoint<class_ConeTwistJoint>`, :ref:`Generic6DOFJoint<class_Generic6DOFJoint>`, :ref:`HingeJoint<class_HingeJoint>`, :ref:`PinJoint<class_PinJoint>`, :ref:`SliderJoint<class_SliderJoint>`
  10. Base class for all 3D joints.
  11. Description
  12. -----------
  13. Joints are used to bind together two physics bodies. They have a solver priority and can define if the bodies of the two attached nodes should be able to collide with each other.
  14. Properties
  15. ----------
  16. +---------------------------------+------------------------------------------------------------------------------+------------------+
  17. | :ref:`bool<class_bool>` | :ref:`collision/exclude_nodes<class_Joint_property_collision/exclude_nodes>` | ``true`` |
  18. +---------------------------------+------------------------------------------------------------------------------+------------------+
  19. | :ref:`NodePath<class_NodePath>` | :ref:`nodes/node_a<class_Joint_property_nodes/node_a>` | ``NodePath("")`` |
  20. +---------------------------------+------------------------------------------------------------------------------+------------------+
  21. | :ref:`NodePath<class_NodePath>` | :ref:`nodes/node_b<class_Joint_property_nodes/node_b>` | ``NodePath("")`` |
  22. +---------------------------------+------------------------------------------------------------------------------+------------------+
  23. | :ref:`int<class_int>` | :ref:`solver/priority<class_Joint_property_solver/priority>` | ``1`` |
  24. +---------------------------------+------------------------------------------------------------------------------+------------------+
  25. Property Descriptions
  26. ---------------------
  27. .. _class_Joint_property_collision/exclude_nodes:
  28. - :ref:`bool<class_bool>` **collision/exclude_nodes**
  29. +-----------+-----------------------------------------+
  30. | *Default* | ``true`` |
  31. +-----------+-----------------------------------------+
  32. | *Setter* | set_exclude_nodes_from_collision(value) |
  33. +-----------+-----------------------------------------+
  34. | *Getter* | get_exclude_nodes_from_collision() |
  35. +-----------+-----------------------------------------+
  36. If ``true``, the two bodies of the nodes are not able to collide with each other.
  37. ----
  38. .. _class_Joint_property_nodes/node_a:
  39. - :ref:`NodePath<class_NodePath>` **nodes/node_a**
  40. +-----------+-------------------+
  41. | *Default* | ``NodePath("")`` |
  42. +-----------+-------------------+
  43. | *Setter* | set_node_a(value) |
  44. +-----------+-------------------+
  45. | *Getter* | get_node_a() |
  46. +-----------+-------------------+
  47. The node attached to the first side (A) of the joint.
  48. ----
  49. .. _class_Joint_property_nodes/node_b:
  50. - :ref:`NodePath<class_NodePath>` **nodes/node_b**
  51. +-----------+-------------------+
  52. | *Default* | ``NodePath("")`` |
  53. +-----------+-------------------+
  54. | *Setter* | set_node_b(value) |
  55. +-----------+-------------------+
  56. | *Getter* | get_node_b() |
  57. +-----------+-------------------+
  58. The node attached to the second side (B) of the joint.
  59. ----
  60. .. _class_Joint_property_solver/priority:
  61. - :ref:`int<class_int>` **solver/priority**
  62. +-----------+----------------------------+
  63. | *Default* | ``1`` |
  64. +-----------+----------------------------+
  65. | *Setter* | set_solver_priority(value) |
  66. +-----------+----------------------------+
  67. | *Getter* | get_solver_priority() |
  68. +-----------+----------------------------+
  69. The priority used to define which solver is executed first for multiple joints. The lower the value, the higher the priority.
  70. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  71. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  72. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`