cubing.js
cubing.js copied to clipboard
[TwistyPlayer] Turn velocity should respect modulo
Right now we have a fixed turn-velocity based on the "count" of a move. For puzzles with only one grip type this makes sense, but for puzzles with multiple grip types, or taking into account non-grip puzzle rotations, this starts to fail. For instance, on the skewb, a normal move is mod 3, a puzzle rotation on a face is mod 4, and a puzzle rotation on an edge is mod 2. Because an edge puzzle rotation gets the same real-time value as a face puzzle rotation, the edge puzzle rotation appears to execute twice as fast. Likely the turn velocity should be in terms of degree of rotation, which is move "amount" divided by move modulus multiplied by tau.