Project

General

Profile

Download (15.5 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / java / org / distorted / objects / Movement.java @ a76d9cb4

# Date Author Comment
a76d9cb4 09/24/2021 04:23 PM Leszek Koltunski

Correct the cuts of Mega/Kilominx.

4946b635 09/24/2021 11:30 AM Leszek Koltunski

Major abstraction - automatically compute the 'computeRowFromOffset()' function from CUTS.
Still one thing left: it appears like the CUTS of Mega/Kilominxes are not correct.

ef018c1b 09/23/2021 02:11 AM Leszek Koltunski

Abstract the next function, computeRowFromOffset(), out of the individual Movement classes.
Still two issues:

1) mysterious 1.5 multiplier in Movement12
2) in Movement8, moving the offset works only if the rotAxis are face-turning, i.e. they connect the centers of the opposing faces of the octahedron.

da178c88 09/19/2021 12:44 AM Leszek Koltunski

Make computing the offset in the Movement class more correct. From now on, in the center of the face the offset if always 0 regardless of the axis.
Before it would always assume that we can add DIST2D to the offset which is originated at the center of the face and this way get an offset which spans from 0 to height of the face. This is not always true - conterexample: half of the triangluar faces of an octahedron which are 'upside down'

c7c83fb7 07/30/2021 01:27 AM Leszek Koltunski

TwistyObject's ObejctScreenRatio and InitScreenRatio shouldn't be static. Make them non-static.
Otherwise, if the current object is, say, a cube (initSR=0.5), we fire up tutorials and start a tutorial for something with vastly different ObjectScreenRatio (Jing- initSR=1.64), then come back to the Main Activity - so there's a cube on the screen again - the ratios stay at their Jing values, which screws up detection of rotations.

cf097581 06/12/2021 01:36 PM Leszek Koltunski

Minor.

1ded8771 06/04/2021 01:37 PM Leszek Koltunski

Square-1: progress with movement.

12313693 01/01/2021 11:03 PM Leszek Koltunski

Progress with the Kilominx movement (still not working)

ee39837d 09/26/2020 11:30 PM Leszek Koltunski

Progress with the Diamond. Everything working except for the isSolved(): turns out the center cubits can end up rotated along the face by multitudes of 120 degrees.

cc99cf91 09/26/2020 08:44 PM Leszek Koltunski

Progress with the Diamond. Everything working, expect one thing: half of the faces are upside down, and computing offset doesn't work on those faces properly.

9c2f0c91 09/25/2020 08:35 AM Leszek Koltunski

Rename some classes.

ca3300c3 09/25/2020 08:29 AM Leszek Koltunski

Rename 'RubikMovement' to 'Movement'