class_joint3d.rst 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. Base class for all 3D joints.
  12. Description
  13. -----------
  14. 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. See also :ref:`Generic6DOFJoint3D<class_Generic6DOFJoint3D>`.
  15. Tutorials
  16. ---------
  17. - `3D Truck Town Demo <https://godotengine.org/asset-library/asset/524>`__
  18. Properties
  19. ----------
  20. +---------------------------------+--------------------------------------------------------------------------------+------------------+
  21. | :ref:`bool<class_bool>` | :ref:`collision/exclude_nodes<class_Joint3D_property_collision/exclude_nodes>` | ``true`` |
  22. +---------------------------------+--------------------------------------------------------------------------------+------------------+
  23. | :ref:`NodePath<class_NodePath>` | :ref:`nodes/node_a<class_Joint3D_property_nodes/node_a>` | ``NodePath("")`` |
  24. +---------------------------------+--------------------------------------------------------------------------------+------------------+
  25. | :ref:`NodePath<class_NodePath>` | :ref:`nodes/node_b<class_Joint3D_property_nodes/node_b>` | ``NodePath("")`` |
  26. +---------------------------------+--------------------------------------------------------------------------------+------------------+
  27. | :ref:`int<class_int>` | :ref:`solver/priority<class_Joint3D_property_solver/priority>` | ``1`` |
  28. +---------------------------------+--------------------------------------------------------------------------------+------------------+
  29. Property Descriptions
  30. ---------------------
  31. .. _class_Joint3D_property_collision/exclude_nodes:
  32. - :ref:`bool<class_bool>` **collision/exclude_nodes**
  33. +-----------+-----------------------------------------+
  34. | *Default* | ``true`` |
  35. +-----------+-----------------------------------------+
  36. | *Setter* | set_exclude_nodes_from_collision(value) |
  37. +-----------+-----------------------------------------+
  38. | *Getter* | get_exclude_nodes_from_collision() |
  39. +-----------+-----------------------------------------+
  40. If ``true``, the two bodies of the nodes are not able to collide with each other.
  41. ----
  42. .. _class_Joint3D_property_nodes/node_a:
  43. - :ref:`NodePath<class_NodePath>` **nodes/node_a**
  44. +-----------+-------------------+
  45. | *Default* | ``NodePath("")`` |
  46. +-----------+-------------------+
  47. | *Setter* | set_node_a(value) |
  48. +-----------+-------------------+
  49. | *Getter* | get_node_a() |
  50. +-----------+-------------------+
  51. The node attached to the first side (A) of the joint.
  52. ----
  53. .. _class_Joint3D_property_nodes/node_b:
  54. - :ref:`NodePath<class_NodePath>` **nodes/node_b**
  55. +-----------+-------------------+
  56. | *Default* | ``NodePath("")`` |
  57. +-----------+-------------------+
  58. | *Setter* | set_node_b(value) |
  59. +-----------+-------------------+
  60. | *Getter* | get_node_b() |
  61. +-----------+-------------------+
  62. The node attached to the second side (B) of the joint.
  63. ----
  64. .. _class_Joint3D_property_solver/priority:
  65. - :ref:`int<class_int>` **solver/priority**
  66. +-----------+----------------------------+
  67. | *Default* | ``1`` |
  68. +-----------+----------------------------+
  69. | *Setter* | set_solver_priority(value) |
  70. +-----------+----------------------------+
  71. | *Getter* | get_solver_priority() |
  72. +-----------+----------------------------+
  73. The priority used to define which solver is executed first for multiple joints. The lower the value, the higher the priority.
  74. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  75. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  76. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  77. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  78. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  79. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`