Project

General

Profile

« Previous | Next » 

Revision 369e6176

Added by Leszek Koltunski about 1 year ago

Make the touchable part of the 'coin' in the CoinTetrahedroon a bit smaller.

View differences:

src/main/java/org/distorted/objectlib/touchcontrol/TouchControlIcosahedron.java
185 185
      case TYPE_SPLIT_CORNER   : return partCorner(point,face);
186 186
      case TYPE_SPLIT_EDGE_COIN: float y = point[1];
187 187
                                 float x = point[0];
188
                                 return partEdge(point,face) + (x*x+y*y < DIST2D*DIST2D ? 0:3 );
188
                                 float dist = D_TRIANGLE*DIST2D;
189
                                 return partEdge(point,face) + (x*x+y*y < dist*dist ? 0:3 );
189 190
      }
190 191

  
191 192
    return 0;

Also available in: Unified diff