Project

General

Profile

« Previous | Next » 

Revision e7daa161

Added by Leszek Koltunski over 2 years ago

- remove the retarded NODE_RATIO from TwistyObject
- more correctly estimate Cuboid's 'realSize' as an average of their 3 sizes.

View differences:

src/main/java/org/distorted/objectlib/main/Twisty4.java
39 39

  
40 40
///////////////////////////////////////////////////////////////////////////////////////////////////
41 41

  
42
  public Twisty4(int[] numLayers, int realSize, Static4D quat, Static3D move, DistortedTexture texture,
43
                 MeshSquare mesh, DistortedEffects effects, Resources res, int scrWidth)
42
  public Twisty4(int[] numLayers, float realSize, Static4D quat, Static3D move, DistortedTexture texture,
43
                 MeshSquare mesh, DistortedEffects effects, Resources res, int surfaceW, int surfaceH)
44 44
    {
45
    super(numLayers, realSize, quat, move, texture, mesh, effects, res, scrWidth);
45
    super(numLayers, realSize, quat, move, texture, mesh, effects, res, surfaceW, surfaceH);
46 46
    }
47 47

  
48 48
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff