Better HN
topnewbestaskshowjobs
Log inSign up

aditya_r_m

9 karma · joined Sep 30, 2018 (8y ago) · 8 submissions

Submissions

comment 8y ago · link · parent

I passed the code through Google closure compiler.

Now it should work on your browser, assuming that it supports HTML5 canvas API.

comment 8y ago · link · parent

Improved it, thank you!

Note that Quaternions didn't fix the issue by themselves. I had to change the interpretation of cursor movements to use axis-angle rotation based orientation.

The fix could be deployed with or without Quaternions.

comment 8y ago · link · parent

Will add this feature in the TODO list :) thanks!

comment 8y ago · link · parent

I'll look into it, probably will need to run Google closure compiler on the JavaScript code.

comment 8y ago · link · parent

I think you may be mistaking them for a different type of puzzle with diamond shape & similar look. As far as I know,there are two possible variants of similar looking Octahedron shaped puzzles: 1) Face turning octahedron (the ones I've currently defined in the project) 2) Axis turning octahedron (on which you can twist around axis)

comment 8y ago · link · parent

yes, Quaternions.. thank you! Will do.. :) I was expecting exactly this answer to the third problem I mentioned in that medium article. I've been thinking of studying them for some time now.

7.

Show HN: Rubik's cube variants in different shapes and sizes using canvas 2D API

29 points · by aditya_r_m · 8y ago · 10 comments

8.

Creating Rubik's cube variants using programming(medium.com ↗)

7 points · by aditya_r_m · 8y ago · discuss