SegmentShape2D.xml 647 B

12345678910111213141516171819
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="SegmentShape2D" inherits="Shape2D" version="4.0">
  3. <brief_description>
  4. Segment shape for 2D collisions.
  5. </brief_description>
  6. <description>
  7. Segment shape for 2D collisions. Consists of two points, [code]a[/code] and [code]b[/code].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="a" type="Vector2" setter="set_a" getter="get_a" default="Vector2(0, 0)">
  13. The segment's first point position.
  14. </member>
  15. <member name="b" type="Vector2" setter="set_b" getter="get_b" default="Vector2(0, 10)">
  16. The segment's second point position.
  17. </member>
  18. </members>
  19. </class>