Basic Rubiks cube

After seeing a few threads about transforms for Rubiks cubes, I thought I’d have a go at making an implementation of it myself.


https://blindinghues.github.io/babylonrubiks/
https://blindinghues.github.io/babylonrubiks/game.ts

Rotate by dragging from one face to another… I may change this later, but it feels ok for now.

There’s a lot of refactoring and tidy up to be done, as well as some possible accumulation of FP errors for rotations… but the idea is there. I suck at Rubiks cubes so I’ve never actually been able to solve one, let me know if you any of you succeed :grinning:

8 Likes

Did it a bit of work on it :slight_smile:




1 Like