main.js
// Loop la animatie ,controale de rotire
Loop la animatie ,controale de rotire
Loop la animatie controale de rotire
function animate() {
  requestAnimationFrame(animate);
  torus.rotation.x += 0.01;
  torus.rotation.y += 0.005;
  torus.rotation.z += 0.01;
  planeta.rotation.x += 0.005;
  cubul.rotation.x += 0.005;
  renderer.render(scene, camera);
}
function animate ( ) { requestAnimationFrame ( animate ) ; torus . rotation . x += 0.01 ; torus . rotation . y += 0.005 ; torus . rotation . z += 0.01 ; planeta . rotation . x += 0.005 ; cubul . rotation . x += 0.005 ; renderer . render ( scene , camera ) ; }
Loop la animatie ,controale de rotire
Loop la animatie controale de rotire
// controls.update();