class_heightmapshape.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/HeightMapShape.xml.
  6. .. _class_HeightMapShape:
  7. HeightMapShape
  8. ==============
  9. **Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Height map shape for 3D physics.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Height map shape resource, which can be added to a :ref:`PhysicsBody<class_PhysicsBody>` or :ref:`Area<class_Area>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  21. | :ref:`PoolRealArray<class_PoolRealArray>` | :ref:`map_data<class_HeightMapShape_property_map_data>` | ``PoolRealArray( 0, 0, 0, 0 )`` |
  22. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  23. | :ref:`int<class_int>` | :ref:`map_depth<class_HeightMapShape_property_map_depth>` | ``2`` |
  24. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  25. | :ref:`int<class_int>` | :ref:`map_width<class_HeightMapShape_property_map_width>` | ``2`` |
  26. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Property Descriptions
  31. ---------------------
  32. .. _class_HeightMapShape_property_map_data:
  33. .. rst-class:: classref-property
  34. :ref:`PoolRealArray<class_PoolRealArray>` **map_data** = ``PoolRealArray( 0, 0, 0, 0 )``
  35. .. rst-class:: classref-property-setget
  36. - void **set_map_data** **(** :ref:`PoolRealArray<class_PoolRealArray>` value **)**
  37. - :ref:`PoolRealArray<class_PoolRealArray>` **get_map_data** **(** **)**
  38. Height map data, pool array must be of :ref:`map_width<class_HeightMapShape_property_map_width>` \* :ref:`map_depth<class_HeightMapShape_property_map_depth>` size.
  39. .. rst-class:: classref-item-separator
  40. ----
  41. .. _class_HeightMapShape_property_map_depth:
  42. .. rst-class:: classref-property
  43. :ref:`int<class_int>` **map_depth** = ``2``
  44. .. rst-class:: classref-property-setget
  45. - void **set_map_depth** **(** :ref:`int<class_int>` value **)**
  46. - :ref:`int<class_int>` **get_map_depth** **(** **)**
  47. Number of vertices in the depth of the height map. Changing this will resize the :ref:`map_data<class_HeightMapShape_property_map_data>`.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_HeightMapShape_property_map_width:
  51. .. rst-class:: classref-property
  52. :ref:`int<class_int>` **map_width** = ``2``
  53. .. rst-class:: classref-property-setget
  54. - void **set_map_width** **(** :ref:`int<class_int>` value **)**
  55. - :ref:`int<class_int>` **get_map_width** **(** **)**
  56. Number of vertices in the width of the height map. Changing this will resize the :ref:`map_data<class_HeightMapShape_property_map_data>`.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`