class_heightmapshape.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the HeightMapShape.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_HeightMapShape:
  6. HeightMapShape
  7. ==============
  8. **Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Height map shape for 3D physics.
  10. Description
  11. -----------
  12. Height map shape resource, which can be added to a :ref:`PhysicsBody<class_PhysicsBody>` or :ref:`Area<class_Area>`.
  13. Properties
  14. ----------
  15. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  16. | :ref:`PoolRealArray<class_PoolRealArray>` | :ref:`map_data<class_HeightMapShape_property_map_data>` | ``PoolRealArray( 0, 0, 0, 0 )`` |
  17. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  18. | :ref:`int<class_int>` | :ref:`map_depth<class_HeightMapShape_property_map_depth>` | ``2`` |
  19. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  20. | :ref:`int<class_int>` | :ref:`map_width<class_HeightMapShape_property_map_width>` | ``2`` |
  21. +-------------------------------------------+-----------------------------------------------------------+---------------------------------+
  22. Property Descriptions
  23. ---------------------
  24. .. _class_HeightMapShape_property_map_data:
  25. - :ref:`PoolRealArray<class_PoolRealArray>` **map_data**
  26. +-----------+---------------------------------+
  27. | *Default* | ``PoolRealArray( 0, 0, 0, 0 )`` |
  28. +-----------+---------------------------------+
  29. | *Setter* | set_map_data(value) |
  30. +-----------+---------------------------------+
  31. | *Getter* | get_map_data() |
  32. +-----------+---------------------------------+
  33. 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.
  34. ----
  35. .. _class_HeightMapShape_property_map_depth:
  36. - :ref:`int<class_int>` **map_depth**
  37. +-----------+----------------------+
  38. | *Default* | ``2`` |
  39. +-----------+----------------------+
  40. | *Setter* | set_map_depth(value) |
  41. +-----------+----------------------+
  42. | *Getter* | get_map_depth() |
  43. +-----------+----------------------+
  44. Number of vertices in the depth of the height map. Changing this will resize the :ref:`map_data<class_HeightMapShape_property_map_data>`.
  45. ----
  46. .. _class_HeightMapShape_property_map_width:
  47. - :ref:`int<class_int>` **map_width**
  48. +-----------+----------------------+
  49. | *Default* | ``2`` |
  50. +-----------+----------------------+
  51. | *Setter* | set_map_width(value) |
  52. +-----------+----------------------+
  53. | *Getter* | get_map_width() |
  54. +-----------+----------------------+
  55. Number of vertices in the width of the height map. Changing this will resize the :ref:`map_data<class_HeightMapShape_property_map_data>`.
  56. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  57. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  58. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`