https://github.com/vowzss/rubikscube
Project to learn rotations in a fun way using quaternions applied to video games.
https://github.com/vowzss/rubikscube
mathematics quaternions rubiks-cube unity video-game
Last synced: about 1 year ago
JSON representation
Project to learn rotations in a fun way using quaternions applied to video games.
- Host: GitHub
- URL: https://github.com/vowzss/rubikscube
- Owner: Vowzss
- License: gpl-3.0
- Created: 2022-10-24T12:39:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-02T14:46:19.000Z (over 1 year ago)
- Last Synced: 2024-11-02T15:16:40.077Z (over 1 year ago)
- Topics: mathematics, quaternions, rubiks-cube, unity, video-game
- Language: ShaderLab
- Homepage:
- Size: 502 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RubiksCube
**RubiksCube is Unity project made for learning in a fun way how to use quaternions during mathematics classes.**
## Building
## Create an executable
```sh
$ Unity > File > Build Settings > Build
```
## Run
```sh
$ Unity > File > Build And Run
```
# Usage
Right Click + Swipe (in any direction) will make the whole cube rotate depending on your movement.
Left Click + Swipe (in any direction) will make the selected face of the cube rotate depending on your movement.
Make sure to hold the click while doing the swipe and then let go.
You can edit the cube size by directly changing it using the inspector or in the code itself (beyon 100 rows/columns it's meaningless, it won't run at all).
# Features
```
Resolve button will resolve the cube based on the current setup.
Shuffle button will shuffle according to the slider.
Cube size can be changed between 2 and 10 rows/columns, for more refer to the code itself.
Reset will obviously reset the cube to it's normal aspect, completed.
Undo will get to the last-1 movement made on the cube, a rollback it is.
Redo will simply do the last step you made once more.
```
# Multiple Previews


# Settings Previews




# Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.