File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
examples/spatial_panning_listener Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ function draw() {
84
84
85
85
86
86
//Position the sound in 3 dimensions
87
- panner3d . position ( flock . boids [ 0 ] . position . x ,
87
+ panner3d . set ( flock . boids [ 0 ] . position . x ,
88
88
flock . boids [ 0 ] . position . y ,
89
89
flock . boids [ 0 ] . position . z ) ;
90
90
91
- listener3d . spatializer . setPosition ( 0 , 0 , cam_z_pos )
91
+ listener3d . position ( 0 , 0 , cam_z_pos )
92
92
//listener3d.orientX(cam_y_rot)
93
93
//listener3d.spatializer.orientY(cam_x_rot)
94
94
// listener3d.spatializer.setOrientation(cam_x_rot,cam_y_rot,0)
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ p5.BandPass = BandPass;
88
88
import EQ from './eq' ;
89
89
p5 . EQ = EQ ;
90
90
91
- import listener3D from './listener3d' ;
92
- p5 . listener3D = listener3D ;
91
+ import Listener3D from './listener3d' ;
92
+ p5 . Listener3D = Listener3D ;
93
93
94
94
import Panner3D from './panner3d' ;
95
95
p5 . Panner3D = Panner3D ;
You can’t perform that action at this time.
0 commit comments