class_audiolistener3d.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. :github_url: hide
  2. .. meta::
  3. :keywords: sound
  4. .. DO NOT EDIT THIS FILE!!!
  5. .. Generated automatically from Godot engine sources.
  6. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  7. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AudioListener3D.xml.
  8. .. _class_AudioListener3D:
  9. AudioListener3D
  10. ===============
  11. **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  12. Overrides the location sounds are heard from.
  13. .. rst-class:: classref-introduction-group
  14. Description
  15. -----------
  16. Once added to the scene tree and enabled using :ref:`make_current<class_AudioListener3D_method_make_current>`, this node will override the location sounds are heard from. This can be used to listen from a location different from the :ref:`Camera3D<class_Camera3D>`.
  17. .. rst-class:: classref-reftable-group
  18. Methods
  19. -------
  20. .. table::
  21. :widths: auto
  22. +---------------------------------------+--------------------------------------------------------------------------------------------------+
  23. | |void| | :ref:`clear_current<class_AudioListener3D_method_clear_current>`\ (\ ) |
  24. +---------------------------------------+--------------------------------------------------------------------------------------------------+
  25. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_listener_transform<class_AudioListener3D_method_get_listener_transform>`\ (\ ) |const| |
  26. +---------------------------------------+--------------------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`is_current<class_AudioListener3D_method_is_current>`\ (\ ) |const| |
  28. +---------------------------------------+--------------------------------------------------------------------------------------------------+
  29. | |void| | :ref:`make_current<class_AudioListener3D_method_make_current>`\ (\ ) |
  30. +---------------------------------------+--------------------------------------------------------------------------------------------------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Method Descriptions
  35. -------------------
  36. .. _class_AudioListener3D_method_clear_current:
  37. .. rst-class:: classref-method
  38. |void| **clear_current**\ (\ ) :ref:`🔗<class_AudioListener3D_method_clear_current>`
  39. Disables the listener to use the current camera's listener instead.
  40. .. rst-class:: classref-item-separator
  41. ----
  42. .. _class_AudioListener3D_method_get_listener_transform:
  43. .. rst-class:: classref-method
  44. :ref:`Transform3D<class_Transform3D>` **get_listener_transform**\ (\ ) |const| :ref:`🔗<class_AudioListener3D_method_get_listener_transform>`
  45. Returns the listener's global orthonormalized :ref:`Transform3D<class_Transform3D>`.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_AudioListener3D_method_is_current:
  49. .. rst-class:: classref-method
  50. :ref:`bool<class_bool>` **is_current**\ (\ ) |const| :ref:`🔗<class_AudioListener3D_method_is_current>`
  51. Returns ``true`` if the listener was made current using :ref:`make_current<class_AudioListener3D_method_make_current>`, ``false`` otherwise.
  52. \ **Note:** There may be more than one AudioListener3D marked as "current" in the scene tree, but only the one that was made current last will be used.
  53. .. rst-class:: classref-item-separator
  54. ----
  55. .. _class_AudioListener3D_method_make_current:
  56. .. rst-class:: classref-method
  57. |void| **make_current**\ (\ ) :ref:`🔗<class_AudioListener3D_method_make_current>`
  58. Enables the listener. This will override the current camera's listener.
  59. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  60. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  61. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  62. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  63. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  64. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  65. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  66. .. |void| replace:: :abbr:`void (No return value.)`