Project

General

Profile

« Previous | Next » 

Revision a70b1e96

Added by Leszek Koltunski 12 months ago

Actually use the 'overridable rotation factors' feature and tweat the factors of many objects.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistySquare.java
48 48
    super(meshState, iconMode, data.getNumLayers()[0], quat, move, scale, data, asset);
49 49
    }
50 50

  
51
///////////////////////////////////////////////////////////////////////////////////////////////////
52

  
53
  abstract float getFactor();
54

  
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56

  
57
  @Override
58
  public float[][] returnRotationFactor()
59
    {
60
    float C1 = getFactor();
61
    float C2 = 1.8f;
62
    float[] f1 = new float[] { C1,C1,C1,C1,C1,C1,C1,C1,C1,C1,C1,C1 };
63
    float[] f2 = new float[] { C2,C2 };
64
    return new float[][] { f1,f2,f1 };
65
    }
66

  
51 67
///////////////////////////////////////////////////////////////////////////////////////////////////
52 68

  
53 69
  @Override

Also available in: Unified diff