Joint2D.xml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Joint2D" inherits="Node2D" version="3.2">
  3. <brief_description>
  4. Base node for all joint constraints in 2D physics.
  5. </brief_description>
  6. <description>
  7. Base node for all joint constraints in 2D physics. Joints take 2 bodies and apply a custom constraint.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="bias" type="float" setter="set_bias" getter="get_bias" default="0.0">
  15. When [member node_a] and [member node_b] move in different directions the [code]bias[/code] controls how fast the joint pulls them back to their original position. The lower the [code]bias[/code] the more the two bodies can pull on the joint.
  16. </member>
  17. <member name="disable_collision" type="bool" setter="set_exclude_nodes_from_collision" getter="get_exclude_nodes_from_collision" default="true">
  18. If [code]true[/code], [member node_a] and [member node_b] can not collide.
  19. </member>
  20. <member name="node_a" type="NodePath" setter="set_node_a" getter="get_node_a" default="NodePath(&quot;&quot;)">
  21. The first body attached to the joint. Must derive from [PhysicsBody2D].
  22. </member>
  23. <member name="node_b" type="NodePath" setter="set_node_b" getter="get_node_b" default="NodePath(&quot;&quot;)">
  24. The second body attached to the joint. Must derive from [PhysicsBody2D].
  25. </member>
  26. </members>
  27. <constants>
  28. </constants>
  29. </class>