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

  
98 99
    return 0;

Also available in: Unified diff