Camera Angles
camera.position.set(x, y, z) moves the camera itself in the scene; camera.lookAt(x, y, z) points it at a target. Moving the camera further away (bigger numbers) shows more of the scene; moving it closer shows less but bigger.
You can animate the camera exactly like any other object — change its position a little each frame to orbit around a scene instead of moving the object itself.
Your turn
Make the camera slowly orbit around the shape by updating camera.position.x and camera.position.z each frame using Math.sin/Math.cos of a growing angle, always calling camera.lookAt(0, 0, 0).
- The camera orbits smoothly around the shape
- camera.lookAt is called every frame so the shape stays centered
Output shows up here when you Run.
Ask JARVIS for a hint