瀏覽代碼

Merge pull request #14062 from FalkF/patch-1

[Docs] Use more appropriate rotation speed
Mr.doob 7 年之前
父節點
當前提交
3e0fe7ad76
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/manual/introduction/Creating-a-scene.html

+ 2 - 2
docs/manual/introduction/Creating-a-scene.html

@@ -109,8 +109,8 @@
 		<p>Add the following right above the <strong>renderer.render</strong> call in your <strong>animate</strong> function:</p>
 
 		<code>
-		cube.rotation.x += 0.1;
-		cube.rotation.y += 0.1;
+		cube.rotation.x += 0.01;
+		cube.rotation.y += 0.01;
 		</code>
 
 		<p>This will be run every frame (normally 60 times per second), and give the cube a nice rotation animation. Basically, anything you want to move or change while the app is running has to go through the animate loop. You can of course call other functions from there, so that you don't end up with a <strong>animate</strong> function that's hundreds of p.