AudioController

new AudioController(model, object3D, assetManager)

Audio component controller

Parameters:
NameTypeDescription
modelModel

component model

object3DObject3D

object3D of component

assetManagerAssetManager

asset manager

Classes

AudioController

Members

assetManager :AssetManager

asset manager

sounds :Object.<string, Howl>

sounds of controller

Type:
  • Object.<string, Howl>

Methods

dispose()

Unload all Howl sounds

getSounds() → {Object.<string, Howl>}

Returns:
  • sounds controller
Type: 
Object.<string, Howl>

play(id)

Parameters:
NameTypeDescription
idstring

id of the sound to play

tick(cameraMatrixWorldInverse)

Tick controller

Parameters:
NameTypeDescription
cameraMatrixWorldInverseTHREE.Matrix4

camera matrix world inverse