cubing / AnimCubeJS

▶️ Play around with a Rubik's Cube simulator.
https://animcubejs.cubing.net/animcubejs.html
MIT License
25 stars 8 forks source link

Twist speed / sensitivity #29

Closed raquelhortab closed 1 year ago

raquelhortab commented 1 year ago

Leaving this here in case anyone need it. In order to change the twist sensitivity (so a layer does not spin so quickly by moving the mouse just a bit), look for this:

 currentAngle = .03 * (dragX * i + dragY * n) / Math.sqrt(dragX * dragX + dragY * dragY)),

and change the .03 value. In my case, .01 was nicer.