fix(simulation): open polygon as direct workspace
This commit is contained in:
parent
6cc40282e0
commit
ee7d1dd26c
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue