class_audiolistener3d.rst 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 AudioListener3D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioListener3D:
  6. AudioListener3D
  7. ===============
  8. **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Overrides the location sounds are heard from.
  10. Description
  11. -----------
  12. 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>`.
  13. Methods
  14. -------
  15. +---------------------------------------+--------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`clear_current<class_AudioListener3D_method_clear_current>` **(** **)** |
  17. +---------------------------------------+--------------------------------------------------------------------------------------------------------+
  18. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_listener_transform<class_AudioListener3D_method_get_listener_transform>` **(** **)** |const| |
  19. +---------------------------------------+--------------------------------------------------------------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`is_current<class_AudioListener3D_method_is_current>` **(** **)** |const| |
  21. +---------------------------------------+--------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`make_current<class_AudioListener3D_method_make_current>` **(** **)** |
  23. +---------------------------------------+--------------------------------------------------------------------------------------------------------+
  24. Method Descriptions
  25. -------------------
  26. .. _class_AudioListener3D_method_clear_current:
  27. - void **clear_current** **(** **)**
  28. Disables the listener to use the current camera's listener instead.
  29. ----
  30. .. _class_AudioListener3D_method_get_listener_transform:
  31. - :ref:`Transform3D<class_Transform3D>` **get_listener_transform** **(** **)** |const|
  32. Returns the listener's global orthonormalized :ref:`Transform3D<class_Transform3D>`.
  33. ----
  34. .. _class_AudioListener3D_method_is_current:
  35. - :ref:`bool<class_bool>` **is_current** **(** **)** |const|
  36. Returns ``true`` if the listener was made current using :ref:`make_current<class_AudioListener3D_method_make_current>`, ``false`` otherwise.
  37. \ **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.
  38. ----
  39. .. _class_AudioListener3D_method_make_current:
  40. - void **make_current** **(** **)**
  41. Enables the listener. This will override the current camera's listener.
  42. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  43. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  44. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  45. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  46. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  47. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`