void Update() { if (Input.GetKeyDown("=")) { model.zoomSmooth(1.2f, 0.5f); } else if (Input.GetKeyDown("-")) { model.zoomSmooth(0.8f, 0.5f); } else if (Input.GetKeyDown("0")) { isNavigationEnabled = !isNavigationEnabled; } else if (Input.GetKeyDown("9")) { modelAxisRotation = !modelAxisRotation; } else if (Input.GetKeyDown("]")) { modelManipulator.addLayer(); } else if (Input.GetKeyDown("[")) { modelManipulator.removeLayer(); } else if (Input.GetKeyDown("8")) { modelManipulator.explode(); } }
private void stageOne() { //rotate and move the spine to a suitable location model.rotateSmooth(Vector3.down, 135f, timeS1); model.moveSmooth(new Vector3(-0.6f, 0, 0), timeS1); model.zoomSmooth(2f, timeS1); //roate and move the needle syringe.rotateSmooth(Vector3.forward, 240f, timeS1); syringe.moveSmooth(new Vector3(0.5f, -0.5f, 0.15f), timeS1); }
private void stageTwo() { //Rotate entire model and zoom out slightly container.rotateSmooth(Vector3.up, 95f, timeS2); container.zoomSmooth(0.8f, timeS2); }