https://github.com/adeelh/rubik-s-cube
A Rubik's Cube in Three.js (class project for Computer Graphics, Fall 2015)
https://github.com/adeelh/rubik-s-cube
graphics rubik-cube three-js
Last synced: about 2 months ago
JSON representation
A Rubik's Cube in Three.js (class project for Computer Graphics, Fall 2015)
- Host: GitHub
- URL: https://github.com/adeelh/rubik-s-cube
- Owner: AdeelH
- Created: 2015-12-04T10:05:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T07:28:44.000Z (almost 9 years ago)
- Last Synced: 2025-03-25T16:27:26.209Z (about 1 year ago)
- Topics: graphics, rubik-cube, three-js
- Language: JavaScript
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rubik-s-Cube
A Rubik's Cube in Three.js (class project for Computer Graphics, Fall 2015)
## Live demo
https://rawgit.com/AdeelH/Rubik-s-Cube/master/rubik's%20cube.html
## Controls
### Cube
- Use w, a, s, d, q, e to select slice
- Rotate about x-axis: up/down (ctrl+up/down for all)
- Rotate about y-axis: left/right (ctrl+left/right for all)
- Rotate about z-axis: z/x (ctrl+z/x for all)
- Press the 'Re-shuffle' button to randomly shuffle the cube
### Camera
Toggle camera control by pressing the button or shift+c
- rotate: left-click-and-drag
- pan: right-click-and-drag
- zoom: scroll
Note: The cube controls are disabled while camera controls are on.