class_boxshape.rst 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/BoxShape.xml.
  6. .. _class_BoxShape:
  7. BoxShape
  8. ========
  9. **Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Box shape resource.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 3D box shape that can be a child of a :ref:`PhysicsBody<class_PhysicsBody>` or :ref:`Area<class_Area>`.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - `3D Physics Tests Demo <https://godotengine.org/asset-library/asset/675>`__
  19. - `3D Kinematic Character Demo <https://godotengine.org/asset-library/asset/126>`__
  20. - `3D Platformer Demo <https://godotengine.org/asset-library/asset/125>`__
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +-------------------------------+-------------------------------------------------+------------------------+
  27. | :ref:`Vector3<class_Vector3>` | :ref:`extents<class_BoxShape_property_extents>` | ``Vector3( 1, 1, 1 )`` |
  28. +-------------------------------+-------------------------------------------------+------------------------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_BoxShape_property_extents:
  35. .. rst-class:: classref-property
  36. :ref:`Vector3<class_Vector3>` **extents** = ``Vector3( 1, 1, 1 )``
  37. .. rst-class:: classref-property-setget
  38. - void **set_extents** **(** :ref:`Vector3<class_Vector3>` value **)**
  39. - :ref:`Vector3<class_Vector3>` **get_extents** **(** **)**
  40. The box's half extents. The width, height and depth of this shape is twice the half extents.
  41. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  42. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  43. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  44. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`