Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/manual/introduction/Creating-a-scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ <h2>Animating the cube</h2>
<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.
Expand Down