class_heightmapshape.rst 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.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. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Height map shape for 3D physics (Bullet only).
  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. Description
  23. -----------
  24. Height map shape resource, which can be added to a :ref:`PhysicsBody<class_PhysicsBody>` or :ref:`Area<class_Area>`.
  25. Property Descriptions
  26. ---------------------
  27. .. _class_HeightMapShape_property_map_data:
  28. - :ref:`PoolRealArray<class_PoolRealArray>` **map_data**
  29. +-----------+-----------------------------+
  30. | *Default* | PoolRealArray( 0, 0, 0, 0 ) |
  31. +-----------+-----------------------------+
  32. | *Setter* | set_map_data(value) |
  33. +-----------+-----------------------------+
  34. | *Getter* | get_map_data() |
  35. +-----------+-----------------------------+
  36. 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.
  37. .. _class_HeightMapShape_property_map_depth:
  38. - :ref:`int<class_int>` **map_depth**
  39. +-----------+----------------------+
  40. | *Default* | 2 |
  41. +-----------+----------------------+
  42. | *Setter* | set_map_depth(value) |
  43. +-----------+----------------------+
  44. | *Getter* | get_map_depth() |
  45. +-----------+----------------------+
  46. Depth of the height map data. Changing this will resize the :ref:`map_data<class_HeightMapShape_property_map_data>`.
  47. .. _class_HeightMapShape_property_map_width:
  48. - :ref:`int<class_int>` **map_width**
  49. +-----------+----------------------+
  50. | *Default* | 2 |
  51. +-----------+----------------------+
  52. | *Setter* | set_map_width(value) |
  53. +-----------+----------------------+
  54. | *Getter* | get_map_width() |
  55. +-----------+----------------------+
  56. Width of the height map data. Changing this will resize the :ref:`map_data<class_HeightMapShape_property_map_data>`.