Revision fb1e9a31
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/objectlib/touchcontrol/TouchControlBall.java | ||
---|---|---|
62 | 62 |
|
63 | 63 |
public TouchControlBall(TwistyObject object) |
64 | 64 |
{ |
65 |
super(object.getObjectRatio());
|
|
65 |
super(object); |
|
66 | 66 |
|
67 | 67 |
int[] numLayers = object.getNumLayers(); |
68 | 68 |
float[][] cuts = object.getCuts(numLayers); |
... | ... | |
219 | 219 |
System.arraycopy(mEnabled[face][part], 0, mEnabledRotAxis, 1, num); |
220 | 220 |
} |
221 | 221 |
|
222 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
223 |
|
|
224 |
public float returnRotationFactor(int[] numLayers, int row) |
|
225 |
{ |
|
226 |
return 1.0f; |
|
227 |
} |
|
228 |
|
|
229 | 222 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
230 | 223 |
|
231 | 224 |
public int getTouchedCubitFace() |
Also available in: Unified diff
move the returnRotationFactor() method from touchControl to TwistyObject (where it can be overridden)