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/TwistyPyraminxDiamond.java
53 53
    super(meshState, iconMode, data.getNumLayers()[0], quat, move, scale, data, asset);
54 54
    }
55 55

  
56
///////////////////////////////////////////////////////////////////////////////////////////////////
57

  
58
  @Override
59
  public float[][] returnRotationFactor()
60
    {
61
    float C = 1.5f;
62
    float[] f = new float[] {C,C,C};
63
    return new float[][] { f,f,f };
64
    }
65

  
56 66
///////////////////////////////////////////////////////////////////////////////////////////////////
57 67
// single edge; middle layers don't move
58 68

  

Also available in: Unified diff