Revision 5b05d357
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objects/MovementSquare.java | ||
---|---|---|
35 | 35 |
return offset<DIST2D? 0 : 2-axisIndex; |
36 | 36 |
} |
37 | 37 |
|
38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
39 |
|
|
40 |
public float returnRotationFactor(int numLayers, int row) |
|
41 |
{ |
|
42 |
return 1.0f; |
|
43 |
} |
|
44 |
|
|
45 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
46 |
|
|
47 |
boolean isInsideFace(int face, float[] p) |
|
48 |
{ |
|
49 |
return ( p[0]<=DIST2D && p[0]>=-DIST2D && p[1]<=DIST2D && p[1]>=-DIST2D ); |
|
50 |
} |
|
51 |
|
|
52 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
53 | 39 |
|
54 | 40 |
void computeEnabledAxis(int face, float[] touchPoint, int[] enabled) |
Also available in: Unified diff
Minor