blonkm / rubiks-cube

WebGL Rubik's Cube
http://goo.gl/uDQH6U
MIT License
40 stars 12 forks source link

Cube rotation difficult to control #38

Closed blonkm closed 9 years ago

blonkm commented 9 years ago

Right mouse button drag controls the rotation of the cube, but it drags the cube in weird ways. To solve look at the way Randelshofer's cube is controlled. Amortization of movement should be used (easing) but not too much. And the rotations should be fast. It should feel like 'grabbing the cube'.

bcube2 commented 9 years ago

I am not sure if it belongs to issue no. 35 or this one (but since both of them are labeled as solved, I guess it does not matter). Aside from Werner, Nan has also a beautiful right-click-and-drag: http://nan.ma/reflecube/index.html.

From user point of view, I like his solution about right-clicking (and not showing settings) inside the border. He also covered no. 49. Maybe his code is simplier than Werner´s, so maybe it could be helpful for you in case you are going to implement some parts.

What I like more about Werner´s simulator is that if you right-click inside the border and leave the border, the cube still rotates. I can imagine this feature could be helpful for the end user if the border is small (which I think is convinient for webite makers).

Just sayin´, not pushin´ :-)