class_joint.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. **Category:** Core
  11. Brief Description
  12. -----------------
  13. Base class for all 3D joints.
  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. Description
  26. -----------
  27. 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.
  28. Property Descriptions
  29. ---------------------
  30. .. _class_Joint_property_collision/exclude_nodes:
  31. - :ref:`bool<class_bool>` **collision/exclude_nodes**
  32. +-----------+-----------------------------------------+
  33. | *Default* | true |
  34. +-----------+-----------------------------------------+
  35. | *Setter* | set_exclude_nodes_from_collision(value) |
  36. +-----------+-----------------------------------------+
  37. | *Getter* | get_exclude_nodes_from_collision() |
  38. +-----------+-----------------------------------------+
  39. If ``true``, the two bodies of the nodes are not able to collide with each other.
  40. .. _class_Joint_property_nodes/node_a:
  41. - :ref:`NodePath<class_NodePath>` **nodes/node_a**
  42. +-----------+-------------------+
  43. | *Default* | NodePath("") |
  44. +-----------+-------------------+
  45. | *Setter* | set_node_a(value) |
  46. +-----------+-------------------+
  47. | *Getter* | get_node_a() |
  48. +-----------+-------------------+
  49. The node attached to the first side (A) of the joint.
  50. .. _class_Joint_property_nodes/node_b:
  51. - :ref:`NodePath<class_NodePath>` **nodes/node_b**
  52. +-----------+-------------------+
  53. | *Default* | NodePath("") |
  54. +-----------+-------------------+
  55. | *Setter* | set_node_b(value) |
  56. +-----------+-------------------+
  57. | *Getter* | get_node_b() |
  58. +-----------+-------------------+
  59. The node attached to the second side (B) of the joint.
  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.