2
0

RectangleShape2D.xml 699 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RectangleShape2D" inherits="Shape2D" version="4.0">
  3. <brief_description>
  4. Rectangle shape for 2D collisions.
  5. </brief_description>
  6. <description>
  7. Rectangle shape for 2D collisions. This shape is useful for modeling box-like 2D objects.
  8. </description>
  9. <tutorials>
  10. <link title="2D Pong Demo">https://godotengine.org/asset-library/asset/121</link>
  11. <link title="2D Kinematic Character Demo">https://godotengine.org/asset-library/asset/113</link>
  12. </tutorials>
  13. <members>
  14. <member name="size" type="Vector2" setter="set_size" getter="get_size" default="Vector2(20, 20)">
  15. The rectangle's width and height.
  16. </member>
  17. </members>
  18. </class>