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/TouchControlHexahedron.java
70 70
      case TYPE_SPLIT_CORNER   : return partCorner(point,face);
71 71
      case TYPE_SPLIT_EDGE_COIN: float y = point[1];
72 72
                                 float x = point[0];
73
                                 return partEdge(point,face) + (x*x+y*y < DIST2D*DIST2D ? 0:4 );
73
                                 float dist = D_SQUARE*DIST2D;
74
                                 return partEdge(point,face) + (x*x+y*y < dist*dist ? 0:4 );
74 75
      }
75 76

  
76 77
    return 0;

Also available in: Unified diff