Object3D

PositionalAudioHelper

This helper displays the directional cone of a PositionalAudio.

Example

webaudio / orientation

Code Example

var positionalAudio = new v3d.PositionalAudio(listener); positionalAudio.setDirectionalCone(180, 230, 0.1); var helper = new PositionalAudioHelper(positionalAudio); positionalAudio.add(helper);

Constructor

PositionalAudioHelper(audio : PositionalAudio, range : Number)

audio -- The PositionalAudio to be visualized.

range -- (optional) The range of the directional cone.

divisionsInnerAngle -- (optional) The amount of divisions of the inner part of the directional cone.

divisionsOuterAngle -- (optional) The amount of divisions of the outer part of the directional cone.

Properties

See the base Object3D class for common properties.

.audio : PositionalAudio

PositionalAudio to be visualized.

.range : Number

The range of the directional cone.

.divisionsInnerAngle : Number

The amount of divisions of the inner part of the directional cone.

.divisionsOuterAngle : Number

The amount of divisions of the outer part of the directional cone.

Methods

See the base Object3D class for common methods.

.dispose () : null

Disposes of the helper.

.update () : null

Updates the helper.

Source

For more info on how to obtain the source code of this module see this page.