PositionalAudioHelper.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Object3D] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">这一辅助对象显示[page:PositionalAudio]的方向锥。</p>
  14. <h2>示例</h2>
  15. <div>[example:webaudio_orientation webaudio / orientation ]</div>
  16. <h2>示例代码</h2>
  17. <code>
  18. var positionalAudio = new THREE.PositionalAudio( listener );
  19. positionalAudio.setDirectionalCone( 180, 230, 0.1 );
  20. var helper = new PositionalAudioHelper( positionalAudio );
  21. positionalAudio.add( helper );
  22. </code>
  23. <h2>构造函数</h2>
  24. <h3>[name]( [param:PositionalAudio audio], [param:Number range] )</h3>
  25. <p>
  26. [page:PositionalAudio audio] -- 将会被可视化的[page:PositionalAudio]。<br /><br/>
  27. [page:Number range] -- (可选)方向锥的范围。<br /><br/>
  28. [page:Number divisionsInnerAngle] -- (可选)方向锥内侧部分的分段数。<br /><br/>
  29. [page:Number divisionsOuterAngle] -- (可选)方向锥外侧部分的分段数。<br /><br/>
  30. </p>
  31. <h2>属性</h2>
  32. <p>共有属性请参见其基类[page:Object3D]。</p>
  33. <h3>[property:PositionalAudio audio]</h3>
  34. <p>将会被可视化的[page:PositionalAudio]。</p>
  35. <h3>[property:Number range]</h3>
  36. <p>方向锥的范围。</p>
  37. <h3>[property:Number divisionsInnerAngle]</h3>
  38. <p>方向锥内侧部分的分段数。</p>
  39. <h3>[property:Number divisionsOuterAngle]</h3>
  40. <p>方向锥外侧部分的分段数。</p>
  41. <h2>方法</h2>
  42. <p>共有方法请参见其基类[page:Object3D]。</p>
  43. <h3>[method:null dispose]()</h3>
  44. <p>废置这一辅助对象。</p>
  45. <h3>[method:null update]()</h3>
  46. <p>更新这一辅助对象。</p>
  47. <h2>源代码</h2>
  48. <p>
  49. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/helpers/PositionalAudioHelper.js examples/jsm/helpers/PositionalAudioHelper.js]
  50. </p>
  51. </body>
  52. </html>