fix(simulation): open polygon as direct workspace

This commit is contained in:
DCCONSTRUCTIONS 2026-07-24 21:10:37 +03:00
parent 6cc40282e0
commit ee7d1dd26c
2 changed files with 3 additions and 2 deletions

View File

@ -222,6 +222,7 @@ export default function App() {
if (!polygonRunRoute.active || polygonRunRouteOpenedRef.current) return;
polygonRunRouteOpenedRef.current = true;
workspace.openView("polygon-run");
workspace.closeNavigation();
}, [polygonRunRoute.active, workspace]);
if (!sceneSettingsCommitterRef.current) {
@ -420,8 +421,8 @@ export default function App() {
const selectRoot = (rootId: RootId) => {
setActiveRoot(rootId);
if (rootId === "polygon") {
workspace.closeNavigation();
workspace.openView("polygon-run");
workspace.closeNavigation();
return;
}
workspace.closeView();

View File

@ -10,7 +10,7 @@ interface PolygonRoverSceneProps {
workerAvailable: boolean;
}
const CAMERA_POSITION = new THREE.Vector3(7.2, 5.6, 7.2);
const CAMERA_POSITION = new THREE.Vector3(5.3, 3.9, 5.3);
const CAMERA_TARGET = new THREE.Vector3(0, 0.55, 0);
function threePosition(state: PolygonVehicleState): THREE.Vector3 {