RectangleShape2D.xml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RectangleShape2D" inherits="Shape2D" category="Core" version="3.0.alpha.custom_build">
  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. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_extents" qualifiers="const">
  15. <return type="Vector2">
  16. </return>
  17. <description>
  18. Return the half extents, the actual width and height of this shape is twice the half extents.
  19. </description>
  20. </method>
  21. <method name="set_extents">
  22. <return type="void">
  23. </return>
  24. <argument index="0" name="extents" type="Vector2">
  25. </argument>
  26. <description>
  27. Set the half extents, the actual width and height of this shape is twice the half extents.
  28. </description>
  29. </method>
  30. </methods>
  31. <members>
  32. <member name="extents" type="Vector2" setter="set_extents" getter="get_extents">
  33. The rectangle's half extents. The width and height of this shape is twice the half extents.
  34. </member>
  35. </members>
  36. <constants>
  37. </constants>
  38. </class>