PinJoint3D.xml 2.1 KB

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