PinJoint.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="PinJoint" inherits="Joint" version="3.2">
  3. <brief_description>
  4. Pin joint for 3D shapes.
  5. </brief_description>
  6. <description>
  7. Pin joint for 3D rigid bodies. It pins 2 bodies (rigid or static) together.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="get_param" qualifiers="const">
  13. <return type="float">
  14. </return>
  15. <argument index="0" name="param" type="int" enum="PinJoint.Param">
  16. </argument>
  17. <description>
  18. Returns the value of the specified parameter.
  19. </description>
  20. </method>
  21. <method name="set_param">
  22. <return type="void">
  23. </return>
  24. <argument index="0" name="param" type="int" enum="PinJoint.Param">
  25. </argument>
  26. <argument index="1" name="value" type="float">
  27. </argument>
  28. <description>
  29. Sets the value of the specified parameter.
  30. </description>
  31. </method>
  32. </methods>
  33. <members>
  34. <member name="params/bias" type="float" setter="set_param" getter="get_param" default="0.3">
  35. The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
  36. </member>
  37. <member name="params/damping" type="float" setter="set_param" getter="get_param" default="1.0">
  38. The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
  39. </member>
  40. <member name="params/impulse_clamp" type="float" setter="set_param" getter="get_param" default="0.0">
  41. If above 0, this value is the maximum value for an impulse that this Joint produces.
  42. </member>
  43. </members>
  44. <constants>
  45. <constant name="PARAM_BIAS" value="0" enum="Param">
  46. The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
  47. </constant>
  48. <constant name="PARAM_DAMPING" value="1" enum="Param">
  49. The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
  50. </constant>
  51. <constant name="PARAM_IMPULSE_CLAMP" value="2" enum="Param">
  52. If above 0, this value is the maximum value for an impulse that this Joint produces.
  53. </constant>
  54. </constants>
  55. </class>