Project

General

Profile

« Previous | Next » 

Revision ccd8a6f2

Added by Leszek Koltunski about 1 year ago

Disconnect the rotation axis in the Tablebases from the axis in the objects.

View differences:

src/main/java/org/distorted/objectlib/tablebases/TablebasesIvyCube.java
12 12
import android.content.res.Resources;
13 13

  
14 14
import org.distorted.library.type.Static3D;
15
import org.distorted.objectlib.objects.TwistyIvy;
15
import static org.distorted.objectlib.main.TwistyObject.SQ3;
16 16

  
17 17
///////////////////////////////////////////////////////////////////////////////////////////////////
18 18

  
......
53 53

  
54 54
  Static3D[] getRotationAxis()
55 55
    {
56
    return TwistyIvy.ROT_AXIS;
56
    return new Static3D[]
57
         {
58
           new Static3D( SQ3/3, SQ3/3, SQ3/3),
59
           new Static3D( SQ3/3, SQ3/3,-SQ3/3),
60
           new Static3D( SQ3/3,-SQ3/3, SQ3/3),
61
           new Static3D( SQ3/3,-SQ3/3,-SQ3/3)
62
         };
57 63
    }
58 64

  
59 65
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff