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;
|
if (!polygonRunRoute.active || polygonRunRouteOpenedRef.current) return;
|
||||||
polygonRunRouteOpenedRef.current = true;
|
polygonRunRouteOpenedRef.current = true;
|
||||||
workspace.openView("polygon-run");
|
workspace.openView("polygon-run");
|
||||||
|
workspace.closeNavigation();
|
||||||
}, [polygonRunRoute.active, workspace]);
|
}, [polygonRunRoute.active, workspace]);
|
||||||
|
|
||||||
if (!sceneSettingsCommitterRef.current) {
|
if (!sceneSettingsCommitterRef.current) {
|
||||||
|
|
@ -420,8 +421,8 @@ export default function App() {
|
||||||
const selectRoot = (rootId: RootId) => {
|
const selectRoot = (rootId: RootId) => {
|
||||||
setActiveRoot(rootId);
|
setActiveRoot(rootId);
|
||||||
if (rootId === "polygon") {
|
if (rootId === "polygon") {
|
||||||
workspace.closeNavigation();
|
|
||||||
workspace.openView("polygon-run");
|
workspace.openView("polygon-run");
|
||||||
|
workspace.closeNavigation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
workspace.closeView();
|
workspace.closeView();
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ interface PolygonRoverSceneProps {
|
||||||
workerAvailable: boolean;
|
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);
|
const CAMERA_TARGET = new THREE.Vector3(0, 0.55, 0);
|
||||||
|
|
||||||
function threePosition(state: PolygonVehicleState): THREE.Vector3 {
|
function threePosition(state: PolygonVehicleState): THREE.Vector3 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue