class_joint3d.rst 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/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 (:ref:`node_a<class_Joint3D_property_node_a>` and :ref:`node_b<class_Joint3D_property_node_b>`) and apply a constraint. If only one body is defined, it is attached to a fixed :ref:`StaticBody3D<class_StaticBody3D>` without collision shapes.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - `3D Truck Town Demo <https://godotengine.org/asset-library/asset/2752>`__
  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`` :ref:`🔗<class_Joint3D_property_exclude_nodes_from_collision>`
  50. .. rst-class:: classref-property-setget
  51. - |void| **set_exclude_nodes_from_collision**\ (\ value\: :ref:`bool<class_bool>`\ )
  52. - :ref:`bool<class_bool>` **get_exclude_nodes_from_collision**\ (\ )
  53. If ``true``, the two bodies bound together do not 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("")`` :ref:`🔗<class_Joint3D_property_node_a>`
  59. .. rst-class:: classref-property-setget
  60. - |void| **set_node_a**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
  61. - :ref:`NodePath<class_NodePath>` **get_node_a**\ (\ )
  62. Path to the first node (A) attached to the joint. The node must inherit :ref:`PhysicsBody3D<class_PhysicsBody3D>`.
  63. If left empty and :ref:`node_b<class_Joint3D_property_node_b>` is set, the body is attached to a fixed :ref:`StaticBody3D<class_StaticBody3D>` without collision shapes.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_Joint3D_property_node_b:
  67. .. rst-class:: classref-property
  68. :ref:`NodePath<class_NodePath>` **node_b** = ``NodePath("")`` :ref:`🔗<class_Joint3D_property_node_b>`
  69. .. rst-class:: classref-property-setget
  70. - |void| **set_node_b**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
  71. - :ref:`NodePath<class_NodePath>` **get_node_b**\ (\ )
  72. Path to the second node (B) attached to the joint. The node must inherit :ref:`PhysicsBody3D<class_PhysicsBody3D>`.
  73. If left empty and :ref:`node_a<class_Joint3D_property_node_a>` is set, the body is attached to a fixed :ref:`StaticBody3D<class_StaticBody3D>` without collision shapes.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_Joint3D_property_solver_priority:
  77. .. rst-class:: classref-property
  78. :ref:`int<class_int>` **solver_priority** = ``1`` :ref:`🔗<class_Joint3D_property_solver_priority>`
  79. .. rst-class:: classref-property-setget
  80. - |void| **set_solver_priority**\ (\ value\: :ref:`int<class_int>`\ )
  81. - :ref:`int<class_int>` **get_solver_priority**\ (\ )
  82. The priority used to define which solver is executed first for multiple joints. The lower the value, the higher the priority.
  83. .. rst-class:: classref-section-separator
  84. ----
  85. .. rst-class:: classref-descriptions-group
  86. Method Descriptions
  87. -------------------
  88. .. _class_Joint3D_method_get_rid:
  89. .. rst-class:: classref-method
  90. :ref:`RID<class_RID>` **get_rid**\ (\ ) |const| :ref:`🔗<class_Joint3D_method_get_rid>`
  91. Returns the joint's internal :ref:`RID<class_RID>` from the :ref:`PhysicsServer3D<class_PhysicsServer3D>`.
  92. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  93. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  94. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  95. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  96. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  97. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  98. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  99. .. |void| replace:: :abbr:`void (No return value.)`