class_conetwistjoint.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ConeTwistJoint.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ConeTwistJoint:
  5. ConeTwistJoint
  6. ==============
  7. **Inherits:** :ref:`Joint<class_joint>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. A twist joint between two 3D bodies.
  12. Member Variables
  13. ----------------
  14. .. _class_ConeTwistJoint_bias:
  15. - :ref:`float<class_float>` **bias** - The speed with which the swing or twist will take place.
  16. The higher, the faster.
  17. .. _class_ConeTwistJoint_relaxation:
  18. - :ref:`float<class_float>` **relaxation** - Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
  19. .. _class_ConeTwistJoint_softness:
  20. - :ref:`float<class_float>` **softness** - The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.
  21. .. _class_ConeTwistJoint_swing_span:
  22. - :ref:`float<class_float>` **swing_span** - Swing is rotation from side to side, around the axis perpendicular to the twist axis.
  23. The swing span defines, how much rotation will not get corrected allong the swing axis.
  24. Could be defined as looseness in the ``ConeTwistJoint``.
  25. If below 0.05, this behaviour is locked. Default value: ``PI/4``.
  26. .. _class_ConeTwistJoint_twist_span:
  27. - :ref:`float<class_float>` **twist_span** - Twist is the rotation around the twist axis, this value defined how far the joint can twist.
  28. Twist is locked if below 0.05.
  29. Enums
  30. -----
  31. .. _enum_ConeTwistJoint_Param:
  32. enum **Param**
  33. - **PARAM_SWING_SPAN** = **0** --- Swing is rotation from side to side, around the axis perpendicular to the twist axis.
  34. The swing span defines, how much rotation will not get corrected allong the swing axis.
  35. Could be defined as looseness in the ``ConeTwistJoint``.
  36. If below 0.05, this behaviour is locked. Default value: ``PI/4``.
  37. - **PARAM_TWIST_SPAN** = **1** --- Twist is the rotation around the twist axis, this value defined how far the joint can twist.
  38. Twist is locked if below 0.05.
  39. - **PARAM_BIAS** = **2** --- The speed with which the swing or twist will take place.
  40. The higher, the faster.
  41. - **PARAM_SOFTNESS** = **3** --- The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.
  42. - **PARAM_RELAXATION** = **4** --- Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
  43. - **PARAM_MAX** = **5** --- End flag of PARAM\_\* constants, used internally.
  44. Description
  45. -----------
  46. The joint can rotate the bodies across an axis defined by the local x-axes of the :ref:`Joint<class_joint>`.
  47. The twist axis is initiated as the x-axis of the :ref:`Joint<class_joint>`.
  48. Once the Bodies swing, the twist axis is calculated as the middle of the x-axes of the Joint in the local space of the two Bodies.