GrooveJoint2D.xml 1012 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="GrooveJoint2D" inherits="Joint2D" category="Core" version="3.1">
  3. <brief_description>
  4. Groove constraint for 2D physics.
  5. </brief_description>
  6. <description>
  7. Groove constraint for 2D physics. This is useful for making a body "slide" through a segment placed in another.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="initial_offset" type="float" setter="set_initial_offset" getter="get_initial_offset">
  17. The body B's initial anchor position defined by the joint's origin and a local offset [member initial_offset] along the joint's y axis (along the groove). Default value: [code]25[/code]
  18. </member>
  19. <member name="length" type="float" setter="set_length" getter="get_length">
  20. The groove's length. The groove is from the joint's origin towards [member length] along the joint's local y axis. Default value: [code]50[/code]
  21. </member>
  22. </members>
  23. <constants>
  24. </constants>
  25. </class>