class_heightmapshape3d.rst 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 HeightMapShape3D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_HeightMapShape3D:
  6. HeightMapShape3D
  7. ================
  8. **Inherits:** :ref:`Shape3D<class_Shape3D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :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:`PhysicsBody3D<class_PhysicsBody3D>` or :ref:`Area3D<class_Area3D>`.
  13. Properties
  14. ----------
  15. +-----------------------------------------------------+-------------------------------------------------------------+------------------------------------+
  16. | :ref:`PackedFloat32Array<class_PackedFloat32Array>` | :ref:`map_data<class_HeightMapShape3D_property_map_data>` | ``PackedFloat32Array(0, 0, 0, 0)`` |
  17. +-----------------------------------------------------+-------------------------------------------------------------+------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`map_depth<class_HeightMapShape3D_property_map_depth>` | ``2`` |
  19. +-----------------------------------------------------+-------------------------------------------------------------+------------------------------------+
  20. | :ref:`int<class_int>` | :ref:`map_width<class_HeightMapShape3D_property_map_width>` | ``2`` |
  21. +-----------------------------------------------------+-------------------------------------------------------------+------------------------------------+
  22. Property Descriptions
  23. ---------------------
  24. .. _class_HeightMapShape3D_property_map_data:
  25. - :ref:`PackedFloat32Array<class_PackedFloat32Array>` **map_data**
  26. +-----------+------------------------------------+
  27. | *Default* | ``PackedFloat32Array(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_HeightMapShape3D_property_map_width>` \* :ref:`map_depth<class_HeightMapShape3D_property_map_depth>` size.
  34. ----
  35. .. _class_HeightMapShape3D_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. Depth of the height map data. Changing this will resize the :ref:`map_data<class_HeightMapShape3D_property_map_data>`.
  45. ----
  46. .. _class_HeightMapShape3D_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. Width of the height map data. Changing this will resize the :ref:`map_data<class_HeightMapShape3D_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.)`
  59. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  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.)`
  61. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`