new AudioController(model, object3D, assetManager)
Audio component controller
Parameters:
Name | Type | Description |
---|---|---|
model | Model | component model |
object3D | Object3D | object3D of component |
assetManager | AssetManager | asset manager |
- Source
Classes
Members
assetManager :AssetManager
asset manager
Type:
- Source
sounds :Object.<string, Howl>
sounds of controller
Type:
- Object.<string, Howl>
- Source
Methods
dispose()
Unload all Howl sounds
- Source
getSounds() → {Object.<string, Howl>}
- Source
Returns:
- sounds controller
- Type:
- Object.<string, Howl>
play(id)
Parameters:
Name | Type | Description |
---|---|---|
id | string | id of the sound to play |
- Source
tick(cameraMatrixWorldInverse)
Tick controller
Parameters:
Name | Type | Description |
---|---|---|
cameraMatrixWorldInverse | THREE. | camera matrix world inverse |
- Source