0

私のコードがあります http://codepen.io/usf/pen/pGscf

この部分で

 function animate() {   
   //sun.rotation.x = t/1000;
    sun.rotation.y += 0.01;

    t  += 0.1;
    earth.position.x = Math.sin((2*Math.PI/24*60*60)*timeScale*t)*300;
    earth.position.z = Math.cos((2*Math.PI/24*60*60)*timeScale*t)*200;

    camera.position.set(sun.position);
    camera.lookAt(earth.position);
    //sun.lookAt(earth.position);

    renderer.clear();
    renderer.render(scene, camera);        
    window.requestAnimationFrame(animate, renderer.domElement);
};

太陽から地球を見たいけど(笑)、何も見えない。どうすればそれを修正できますか? ちょっとした間違いだと思うのですが、見つけられません。

4

1 に答える 1