Revision 369e6176
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/objectlib/touchcontrol/TouchControlDodecahedron.java | ||
---|---|---|
114 | 114 |
case TYPE_SPLIT_EDGE : return partEdge(point,face); |
115 | 115 |
case TYPE_SPLIT_EDGE_COIN: float y = point[1]; |
116 | 116 |
float x = point[0]; |
117 |
return partEdge(point,face) + (x*x+y*y < DIST2D*DIST2D ? 0:5 ); |
|
117 |
float dist = D_PENTA*DIST2D; |
|
118 |
return partEdge(point,face) + (x*x+y*y < dist*dist ? 0:5 ); |
|
118 | 119 |
case TYPE_SPLIT_CORNER : // not supported |
119 | 120 |
} |
120 | 121 |
|
Also available in: Unified diff
Make the touchable part of the 'coin' in the CoinTetrahedroon a bit smaller.