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/TouchControlTetrahedron.java
94 94
      case TYPE_SPLIT_CORNER   : return partCorner(point,face);
95 95
      case TYPE_SPLIT_EDGE_COIN: float y = point[1];
96 96
                                 float x = point[0];
97
                                 return partEdge(point,face) + (x*x+y*y < DIST2D*DIST2D ? 0:3 );
97
                                 float dist = D_TRIANGLE*DIST2D;
98
                                 return partEdge(point,face) + (x*x+y*y < dist*dist ? 0:3 );
98 99
      }
99 100

  
100 101
    return 0;

Also available in: Unified diff