MCPcopy Create free account
hub / github.com/SuboptimalEng/three-js-tutorials / animate

Function animate

15-physics-part-01/src/App.jsx:96–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 test.scene.add(boxMesh);
95
96 const animate = () => {
97 physicsWorld.fixedStep();
98 cannonDebugger.update();
99 boxMesh.position.copy(boxBody.position);
100 boxMesh.quaternion.copy(boxBody.quaternion);
101 sphereMesh.position.copy(sphereBody.position);
102 sphereMesh.quaternion.copy(sphereBody.quaternion);
103 window.requestAnimationFrame(animate);
104 };
105 animate();
106 }, []);
107

Callers 1

AppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected