RectangleShape2D.xml 635 B

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RectangleShape2D" inherits="Shape2D" version="3.2">
  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. <methods>
  12. </methods>
  13. <members>
  14. <member name="extents" type="Vector2" setter="set_extents" getter="get_extents" default="Vector2( 10, 10 )">
  15. The rectangle's half extents. The width and height of this shape is twice the half extents.
  16. </member>
  17. </members>
  18. <constants>
  19. </constants>
  20. </class>