class_planemesh.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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/PlaneMesh.xml.
  6. .. _class_PlaneMesh:
  7. PlaneMesh
  8. =========
  9. **Inherits:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Class representing a planar :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Class representing a planar :ref:`PrimitiveMesh<class_PrimitiveMesh>`. This flat mesh does not have a thickness. By default, this mesh is aligned on the X and Z axes; this default rotation isn't suited for use with billboarded materials. For billboarded materials, use :ref:`QuadMesh<class_QuadMesh>` instead.
  15. \ **Note:** When using a large textured **PlaneMesh** (e.g. as a floor), you may stumble upon UV jittering issues depending on the camera angle. To solve this, increase :ref:`subdivide_depth<class_PlaneMesh_property_subdivide_depth>` and :ref:`subdivide_width<class_PlaneMesh_property_subdivide_width>` until you no longer notice UV jittering.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-------------------------------+------------------------------------------------------------------+------------------------+
  22. | :ref:`Vector3<class_Vector3>` | :ref:`center_offset<class_PlaneMesh_property_center_offset>` | ``Vector3( 0, 0, 0 )`` |
  23. +-------------------------------+------------------------------------------------------------------+------------------------+
  24. | :ref:`Vector2<class_Vector2>` | :ref:`size<class_PlaneMesh_property_size>` | ``Vector2( 2, 2 )`` |
  25. +-------------------------------+------------------------------------------------------------------+------------------------+
  26. | :ref:`int<class_int>` | :ref:`subdivide_depth<class_PlaneMesh_property_subdivide_depth>` | ``0`` |
  27. +-------------------------------+------------------------------------------------------------------+------------------------+
  28. | :ref:`int<class_int>` | :ref:`subdivide_width<class_PlaneMesh_property_subdivide_width>` | ``0`` |
  29. +-------------------------------+------------------------------------------------------------------+------------------------+
  30. .. rst-class:: classref-section-separator
  31. ----
  32. .. rst-class:: classref-descriptions-group
  33. Property Descriptions
  34. ---------------------
  35. .. _class_PlaneMesh_property_center_offset:
  36. .. rst-class:: classref-property
  37. :ref:`Vector3<class_Vector3>` **center_offset** = ``Vector3( 0, 0, 0 )``
  38. .. rst-class:: classref-property-setget
  39. - void **set_center_offset** **(** :ref:`Vector3<class_Vector3>` value **)**
  40. - :ref:`Vector3<class_Vector3>` **get_center_offset** **(** **)**
  41. Offset from the origin of the generated plane. Useful for particles.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_PlaneMesh_property_size:
  45. .. rst-class:: classref-property
  46. :ref:`Vector2<class_Vector2>` **size** = ``Vector2( 2, 2 )``
  47. .. rst-class:: classref-property-setget
  48. - void **set_size** **(** :ref:`Vector2<class_Vector2>` value **)**
  49. - :ref:`Vector2<class_Vector2>` **get_size** **(** **)**
  50. Size of the generated plane.
  51. .. rst-class:: classref-item-separator
  52. ----
  53. .. _class_PlaneMesh_property_subdivide_depth:
  54. .. rst-class:: classref-property
  55. :ref:`int<class_int>` **subdivide_depth** = ``0``
  56. .. rst-class:: classref-property-setget
  57. - void **set_subdivide_depth** **(** :ref:`int<class_int>` value **)**
  58. - :ref:`int<class_int>` **get_subdivide_depth** **(** **)**
  59. Number of subdivision along the Z axis.
  60. .. rst-class:: classref-item-separator
  61. ----
  62. .. _class_PlaneMesh_property_subdivide_width:
  63. .. rst-class:: classref-property
  64. :ref:`int<class_int>` **subdivide_width** = ``0``
  65. .. rst-class:: classref-property-setget
  66. - void **set_subdivide_width** **(** :ref:`int<class_int>` value **)**
  67. - :ref:`int<class_int>` **get_subdivide_width** **(** **)**
  68. Number of subdivision along the X axis.
  69. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  70. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  71. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  72. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`