class_rectangleshape2d.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the RectangleShape2D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_RectangleShape2D:
  5. RectangleShape2D
  6. ================
  7. **Inherits:** :ref:`Shape2D<class_Shape2D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Rectangle shape for 2D collisions.
  12. Properties
  13. ----------
  14. +-------------------------------+---------------------------------------------------------+
  15. | :ref:`Vector2<class_Vector2>` | :ref:`extents<class_RectangleShape2D_property_extents>` |
  16. +-------------------------------+---------------------------------------------------------+
  17. Description
  18. -----------
  19. Rectangle shape for 2D collisions. This shape is useful for modeling box-like 2D objects.
  20. Property Descriptions
  21. ---------------------
  22. .. _class_RectangleShape2D_property_extents:
  23. - :ref:`Vector2<class_Vector2>` **extents**
  24. +----------+--------------------+
  25. | *Setter* | set_extents(value) |
  26. +----------+--------------------+
  27. | *Getter* | get_extents() |
  28. +----------+--------------------+
  29. The rectangle's half extents. The width and height of this shape is twice the half extents.