| 43 | n.send("songbird.setListenerOrientation(0,1,0, 0,0,1)") |
| 44 | |
| 45 | |
| 46 | _.orientation = (origin, forward, up) => { |
| 47 | _.send(`songbird.setListenerPosition(${origin.x}, ${origin.y}, ${origin.z}); songbird.setListenerOrientation(${forward.x},${forward.y},${forward.z},${up.x},${up.y},${up.z})`) |
| 48 | } |
| 49 | |
| 50 | |
| 51 | _.source = (num, angle, radius, d, h) => { |
| 52 | |
| 53 | var x0 = Math.sin(Math.PI*(angle-d)/180)*radius |
| 54 | var y0 = h |
| 55 | var z0 = Math.cos(Math.PI*(angle-d)/180)*radius |
| 56 | var x1 = Math.sin(Math.PI*(angle+d)/180)*radius |
| 57 | var y1 = h |
| 58 | var z1 = Math.cos(Math.PI*(angle+d)/180)*radius |
nothing calls this directly
no test coverage detected