File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686 return g ;
8787 }
8888 const bPill = window . _bPill = pill ( 0x0044cc , 0x001a66 , - 2.4 ) ;
89- bPill . position . y = 2.5 ;
89+ bPill . position . y = 1.0 ;
9090 const rPill = window . _rPill = pill ( 0xcc0000 , 0x660000 , 2.4 ) ;
9191 scene . add ( bPill , rPill ) ;
9292
251251 const clock = new THREE . Clock ( ) ;
252252 ! function anim ( ) {
253253 requestAnimationFrame ( anim ) ; const t = clock . getElapsedTime ( ) ;
254- bPill . position . y = 2.5 + Math . sin ( t * .7 ) * .35 ; bPill . rotation . y = t * .25 ;
254+ bPill . position . y = 1.0 + Math . sin ( t * .7 ) * .35 ; bPill . rotation . y = t * .25 ;
255255 rPill . position . y = Math . sin ( t * .7 + 1.8 ) * .4 ; rPill . rotation . y = - t * .3 ;
256256 bPill . position . x = - 2.4 + pmx * .35 ; rPill . position . x = 2.4 + pmx * .35 ;
257257 cam . position . y = pmy * - .4 ; cam . lookAt ( 0 , 0 , 0 ) ;
Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ let cx=0,cy=0;
513513 return g;
514514 }
515515 const bPill=window._bPill=pill(0x0044cc,0x001a66,-2.4);
516- bPill.position.y=2.5 ;
516+ bPill.position.y=1.0 ;
517517 const rPill=window._rPill=pill(0xcc0000,0x660000,2.4);
518518 scene.add(bPill,rPill);
519519
@@ -678,7 +678,7 @@ let cx=0,cy=0;
678678 const clock=new THREE.Clock();
679679 !function anim(){
680680 requestAnimationFrame(anim);const t=clock.getElapsedTime();
681- bPill.position.y=2.5 +Math.sin(t*.7)*.35;bPill.rotation.y=t*.25;
681+ bPill.position.y=1.0 +Math.sin(t*.7)*.35;bPill.rotation.y=t*.25;
682682 rPill.position.y=Math.sin(t*.7+1.8)*.4;rPill.rotation.y=-t*.3;
683683 bPill.position.x=-2.4+pmx*.35;rPill.position.x=2.4+pmx*.35;
684684 cam.position.y=pmy*-.4;cam.lookAt(0,0,0);
You can’t perform that action at this time.
0 commit comments