class_arrayoccluder3d.rst 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 ArrayOccluder3D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ArrayOccluder3D:
  6. ArrayOccluder3D
  7. ===============
  8. **Inherits:** :ref:`Occluder3D<class_Occluder3D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. 3D polygon shape for use with occlusion culling in :ref:`OccluderInstance3D<class_OccluderInstance3D>`.
  10. Description
  11. -----------
  12. ``ArrayOccluder3D`` stores an arbitrary 3D polygon shape that can be used by the engine's occlusion culling system. This is analogous to :ref:`ArrayMesh<class_ArrayMesh>`, but for occluders.
  13. See :ref:`OccluderInstance3D<class_OccluderInstance3D>`'s documentation for instructions on setting up occlusion culling.
  14. Properties
  15. ----------
  16. +-----------------------------------------------------+----------------------------------------------------------+--------------------------+
  17. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`indices<class_ArrayOccluder3D_property_indices>` | ``PackedInt32Array()`` |
  18. +-----------------------------------------------------+----------------------------------------------------------+--------------------------+
  19. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`vertices<class_ArrayOccluder3D_property_vertices>` | ``PackedVector3Array()`` |
  20. +-----------------------------------------------------+----------------------------------------------------------+--------------------------+
  21. Methods
  22. -------
  23. +------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`set_arrays<class_ArrayOccluder3D_method_set_arrays>` **(** :ref:`PackedVector3Array<class_PackedVector3Array>` vertices, :ref:`PackedInt32Array<class_PackedInt32Array>` indices **)** |
  25. +------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. Property Descriptions
  27. ---------------------
  28. .. _class_ArrayOccluder3D_property_indices:
  29. - :ref:`PackedInt32Array<class_PackedInt32Array>` **indices**
  30. +-----------+------------------------+
  31. | *Default* | ``PackedInt32Array()`` |
  32. +-----------+------------------------+
  33. | *Setter* | set_indices(value) |
  34. +-----------+------------------------+
  35. | *Getter* | get_indices() |
  36. +-----------+------------------------+
  37. ----
  38. .. _class_ArrayOccluder3D_property_vertices:
  39. - :ref:`PackedVector3Array<class_PackedVector3Array>` **vertices**
  40. +-----------+--------------------------+
  41. | *Default* | ``PackedVector3Array()`` |
  42. +-----------+--------------------------+
  43. | *Setter* | set_vertices(value) |
  44. +-----------+--------------------------+
  45. | *Getter* | get_vertices() |
  46. +-----------+--------------------------+
  47. Method Descriptions
  48. -------------------
  49. .. _class_ArrayOccluder3D_method_set_arrays:
  50. - void **set_arrays** **(** :ref:`PackedVector3Array<class_PackedVector3Array>` vertices, :ref:`PackedInt32Array<class_PackedInt32Array>` indices **)**
  51. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  52. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  53. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  54. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  55. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  56. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`