Skip to content

OrHayat/rubik_cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Rubics_Cube

Rubik's cube with OpenGL. Rubik's cube with OpenGL written with c++, project's solution is compiled with Visual Studio 2017.

Rendering a dynamic Rubic's cube using Rotations and Translations.

Use the following keys to control the cube:

Change global variable mySize in main.cpp to 'k' if you wish to render KxK cube.

ESCAPE- exiting the program;

'R' press state for right wall rotation (90 degrees clockwise).

'L' press state for right wall rotation (90 degrees clockwise).

'U' press state for up wall rotation (90 degrees clockwise).

'D' press state for down wall rotation (90 degrees clockwise).

'B' press state for back wall rotation (90 degrees clockwise).

'F' press state for front wall rotation (90 degrees clockwise).

' ' ' press state for flipping rotation direction (from clockwise to counter clockwise or vise versa).

'Z' press state: dividing rotation angle by 2;

'A' press state: multiply rotation angle by 2 (until maximum of 180);

Use arrows to rotate the whole cube around certain axis.

use Q,W,E,T,Y,I for 4x4 cube.

use O,G,P for 5x5 cube.

Use M to mix the cube randomly.

About

rubik cube implmented in c++ and opengl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages