📜  三个js时钟 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:35.582000             🧑  作者: Mango

代码示例1
var clock = new THREE.Clock();
var speed = 2; //units a second
var delta = 0;

render();
function render(){
  requestAnimationFrame(render);

  delta = clock.getDelta();
  object.position.z += speed * delta;

  renderer.render(scene, camera);
}