diff --git a/engine/README.md b/engine/README.md new file mode 100644 index 0000000..083e0e0 --- /dev/null +++ b/engine/README.md @@ -0,0 +1,13 @@ +## Engine + +This engines has a couple of actions that enable you to control the orbital camera. +Here you will find all the controls and a couple of guides. + +For proper usage, run the program in the engine directory. + +### Controlos + +**A** - Enables/Disables the axis of the projection +**R** - Resets the camera to the default position +**O/I** - Zoom in/Zoom out +**UP DOWN LEFT RIGHT** - Controls the camera movement \ No newline at end of file diff --git a/engine/src/main.cpp b/engine/src/main.cpp index 0e34a7f..a2a3492 100644 --- a/engine/src/main.cpp +++ b/engine/src/main.cpp @@ -116,11 +116,15 @@ void processNormalKeys(unsigned char key, int x, int y) { cameraAngleY = 0; zoom = 1.0f; break; - case 'i': - zoom -= 0.1; - break; case 'o': - zoom += 0.1; + if(zoom > 0.2) { + zoom -= 0.1; + } + break; + case 'i': + if(zoom < 2.5) { + zoom += 0.1; + } break; default: break;