MCPcopy Create free account
hub / github.com/esengine/esengine / startFlyLoop

Function startFlyLoop

packages/editor-app/src/components/Viewport.tsx:1051–1056  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1049 // Start fly mode loop when entering fly mode
1050 // 进入飞行模式时启动飞行循环
1051 const startFlyLoop = () => {
1052 if (flyAnimationId === null && isFlyModeRef.current) {
1053 lastFlyTime = 0;
1054 flyAnimationId = requestAnimationFrame(updateFlyMode);
1055 }
1056 };
1057
1058 // Check periodically if fly mode is active
1059 // 定期检查飞行模式是否激活

Callers 1

ViewportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected