Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuboptimalEng/three-js-tutorials
/ animate
Function
animate
13-grouping-objects/src/App.jsx:114–118 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
112
113
// part 3.3 - animate earth rotation and moon rotation
114
const animate = () => {
115
earthOrbit.rotation.y += 0.005;
116
moonOrbit.rotation.y += 0.05;
117
window.requestAnimationFrame(animate);
118
};
119
animate();
120
}, []);
121
Callers
1
App
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected