Project

General

Profile

« Previous | Next » 

Revision aaeef328

Added by Leszek Koltunski about 1 year ago

Support split type 'EDGE_COIN' in case of every shape.

View differences:

src/main/java/org/distorted/objectlib/touchcontrol/TouchControlDodecahedron.java
112 112
      {
113 113
      case TYPE_NOT_SPLIT      : return 0;
114 114
      case TYPE_SPLIT_EDGE     : return partEdge(point,face);
115
      case TYPE_SPLIT_EDGE_COIN: float y = point[1];
116
                                 float x = point[0];
117
                                 return partEdge(point,face) + (x*x+y*y < DIST2D*DIST2D ? 0:5 );
115 118
      case TYPE_SPLIT_CORNER   : // not supported
116
      case TYPE_SPLIT_EDGE_COIN: // not supported
117 119
      }
118 120

  
119 121
    return 0;

Also available in: Unified diff