RectangleShape2D.xml 917 B

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RectangleShape2D" inherits="Shape2D" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  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. <methods>
  14. </methods>
  15. <members>
  16. <member name="extents" type="Vector2" setter="set_extents" getter="get_extents" default="Vector2( 10, 10 )">
  17. The rectangle's half extents. The width and height of this shape is twice the half extents.
  18. </member>
  19. </members>
  20. <constants>
  21. </constants>
  22. </class>