3D Web · Exercise 1 of 5Next
Beginner
Spin a cube at half a turn per second
The cube turns 0.05 radians per frame, so it spins at the speed of your screen. Make it turn at exactly half a turn per second on any screen.
Use THREE.Timer (connected to the document), not the deprecated THREE.Clock.
What Check tests
- The scene has a cube that turns
- It uses THREE.Timer
- It does not use the deprecated Clock
- The turn comes from getDelta()
- It turns slower than 4 radians a second (not a per-frame constant)
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.