Documentation
¶
Overview ¶
Package AudioListener3D provides methods for working with AudioListener3D object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsAudioListener3D() Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) ClearCurrent()
- func (self Instance) GetListenerTransform() Transform3D.BasisOrigin
- func (self Instance) IsCurrent() bool
- func (self Instance) MakeCurrent()
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.AudioListener3D
Once added to the scene tree and enabled using [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 [Camera3D].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsAudioListener3D ¶
func (Instance) ClearCurrent ¶
func (self Instance) ClearCurrent()
Disables the listener to use the current camera's listener instead.
func (Instance) GetListenerTransform ¶
func (self Instance) GetListenerTransform() Transform3D.BasisOrigin
Returns the listener's global orthonormalized [Transform3D].
func (Instance) IsCurrent ¶
Returns [code]true[/code] if the listener was made current using [method make_current], [code]false[/code] otherwise. [b]Note:[/b] 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.
func (Instance) MakeCurrent ¶
func (self Instance) MakeCurrent()
Enables the listener. This will override the current camera's listener.