Skip to content

Commit

Permalink
chore: readme with instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJPinto committed Mar 6, 2024
1 parent 15d40a9 commit e00375d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
13 changes: 13 additions & 0 deletions engine/README.md
Original file line number Diff line number Diff line change
@@ -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
12 changes: 8 additions & 4 deletions engine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e00375d

Please sign in to comment.