class_joint3d.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/Joint3D.xml.
  6. .. _class_Joint3D:
  7. Joint3D
  8. =======
  9. **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`ConeTwistJoint3D<class_ConeTwistJoint3D>`, :ref:`Generic6DOFJoint3D<class_Generic6DOFJoint3D>`, :ref:`HingeJoint3D<class_HingeJoint3D>`, :ref:`PinJoint3D<class_PinJoint3D>`, :ref:`SliderJoint3D<class_SliderJoint3D>`
  11. Abstract base class for all 3D physics joints.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Abstract base class for all joints in 3D physics. 3D joints bind together two physics bodies and apply a constraint.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - `3D Truck Town Demo <https://godotengine.org/asset-library/asset/524>`__
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------------+------------------------------------------------------------------------------------------+------------------+
  26. | :ref:`bool<class_bool>` | :ref:`exclude_nodes_from_collision<class_Joint3D_property_exclude_nodes_from_collision>` | ``true`` |
  27. +---------------------------------+------------------------------------------------------------------------------------------+------------------+
  28. | :ref:`NodePath<class_NodePath>` | :ref:`node_a<class_Joint3D_property_node_a>` | ``NodePath("")`` |
  29. +---------------------------------+------------------------------------------------------------------------------------------+------------------+
  30. | :ref:`NodePath<class_NodePath>` | :ref:`node_b<class_Joint3D_property_node_b>` | ``NodePath("")`` |
  31. +---------------------------------+------------------------------------------------------------------------------------------+------------------+
  32. | :ref:`int<class_int>` | :ref:`solver_priority<class_Joint3D_property_solver_priority>` | ``1`` |
  33. +---------------------------------+------------------------------------------------------------------------------------------+------------------+
  34. .. rst-class:: classref-reftable-group
  35. Methods
  36. -------
  37. .. table::
  38. :widths: auto
  39. +-----------------------+------------------------------------------------------------------+
  40. | :ref:`RID<class_RID>` | :ref:`get_rid<class_Joint3D_method_get_rid>` **(** **)** |const| |
  41. +-----------------------+------------------------------------------------------------------+
  42. .. rst-class:: classref-section-separator
  43. ----
  44. .. rst-class:: classref-descriptions-group
  45. Property Descriptions
  46. ---------------------
  47. .. _class_Joint3D_property_exclude_nodes_from_collision:
  48. .. rst-class:: classref-property
  49. :ref:`bool<class_bool>` **exclude_nodes_from_collision** = ``true``
  50. .. rst-class:: classref-property-setget
  51. - void **set_exclude_nodes_from_collision** **(** :ref:`bool<class_bool>` value **)**
  52. - :ref:`bool<class_bool>` **get_exclude_nodes_from_collision** **(** **)**
  53. If ``true``, the two bodies of the nodes are not able to collide with each other.
  54. .. rst-class:: classref-item-separator
  55. ----
  56. .. _class_Joint3D_property_node_a:
  57. .. rst-class:: classref-property
  58. :ref:`NodePath<class_NodePath>` **node_a** = ``NodePath("")``
  59. .. rst-class:: classref-property-setget
  60. - void **set_node_a** **(** :ref:`NodePath<class_NodePath>` value **)**
  61. - :ref:`NodePath<class_NodePath>` **get_node_a** **(** **)**
  62. The node attached to the first side (A) of the joint.
  63. .. rst-class:: classref-item-separator
  64. ----
  65. .. _class_Joint3D_property_node_b:
  66. .. rst-class:: classref-property
  67. :ref:`NodePath<class_NodePath>` **node_b** = ``NodePath("")``
  68. .. rst-class:: classref-property-setget
  69. - void **set_node_b** **(** :ref:`NodePath<class_NodePath>` value **)**
  70. - :ref:`NodePath<class_NodePath>` **get_node_b** **(** **)**
  71. The node attached to the second side (B) of the joint.
  72. .. rst-class:: classref-item-separator
  73. ----
  74. .. _class_Joint3D_property_solver_priority:
  75. .. rst-class:: classref-property
  76. :ref:`int<class_int>` **solver_priority** = ``1``
  77. .. rst-class:: classref-property-setget
  78. - void **set_solver_priority** **(** :ref:`int<class_int>` value **)**
  79. - :ref:`int<class_int>` **get_solver_priority** **(** **)**
  80. The priority used to define which solver is executed first for multiple joints. The lower the value, the higher the priority.
  81. .. rst-class:: classref-section-separator
  82. ----
  83. .. rst-class:: classref-descriptions-group
  84. Method Descriptions
  85. -------------------
  86. .. _class_Joint3D_method_get_rid:
  87. .. rst-class:: classref-method
  88. :ref:`RID<class_RID>` **get_rid** **(** **)** |const|
  89. Returns the joint's :ref:`RID<class_RID>`.
  90. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  91. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  92. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  93. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  94. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  95. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  96. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`