class_joint.rst 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the Joint.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_Joint:
  5. Joint
  6. =====
  7. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  8. **Inherited By:** :ref:`ConeTwistJoint<class_ConeTwistJoint>`, :ref:`Generic6DOFJoint<class_Generic6DOFJoint>`, :ref:`HingeJoint<class_HingeJoint>`, :ref:`PinJoint<class_PinJoint>`, :ref:`SliderJoint<class_SliderJoint>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Base class for all 3D joints
  13. Properties
  14. ----------
  15. +---------------------------------+------------------------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`collision/exclude_nodes<class_Joint_property_collision/exclude_nodes>` |
  17. +---------------------------------+------------------------------------------------------------------------------+
  18. | :ref:`NodePath<class_NodePath>` | :ref:`nodes/node_a<class_Joint_property_nodes/node_a>` |
  19. +---------------------------------+------------------------------------------------------------------------------+
  20. | :ref:`NodePath<class_NodePath>` | :ref:`nodes/node_b<class_Joint_property_nodes/node_b>` |
  21. +---------------------------------+------------------------------------------------------------------------------+
  22. | :ref:`int<class_int>` | :ref:`solver/priority<class_Joint_property_solver/priority>` |
  23. +---------------------------------+------------------------------------------------------------------------------+
  24. Description
  25. -----------
  26. 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.
  27. Property Descriptions
  28. ---------------------
  29. .. _class_Joint_property_collision/exclude_nodes:
  30. - :ref:`bool<class_bool>` **collision/exclude_nodes**
  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. .. _class_Joint_property_nodes/node_a:
  38. - :ref:`NodePath<class_NodePath>` **nodes/node_a**
  39. +----------+-------------------+
  40. | *Setter* | set_node_a(value) |
  41. +----------+-------------------+
  42. | *Getter* | get_node_a() |
  43. +----------+-------------------+
  44. The node attached to the first side (A) of the joint.
  45. .. _class_Joint_property_nodes/node_b:
  46. - :ref:`NodePath<class_NodePath>` **nodes/node_b**
  47. +----------+-------------------+
  48. | *Setter* | set_node_b(value) |
  49. +----------+-------------------+
  50. | *Getter* | get_node_b() |
  51. +----------+-------------------+
  52. The node attached to the second side (B) of the joint.
  53. .. _class_Joint_property_solver/priority:
  54. - :ref:`int<class_int>` **solver/priority**
  55. +----------+----------------------------+
  56. | *Setter* | set_solver_priority(value) |
  57. +----------+----------------------------+
  58. | *Getter* | get_solver_priority() |
  59. +----------+----------------------------+
  60. The priority used to define which solver is executed first for multiple joints. The lower the value, the higher the priority.