AudioListener3D

package
v0.0.0-...-59761c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package AudioListener3D provides methods for working with AudioListener3D object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsAudioListener3D() Instance
}

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 New

func New() Instance

func (Instance) AsAudioListener3D

func (self Instance) AsAudioListener3D() Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsNode3D

func (self Instance) AsNode3D() Node3D.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

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

func (self Instance) IsCurrent() bool

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.

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL