Revision fb1e9a31
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/objectlib/touchcontrol/TouchControlShapeChanging.java | ||
---|---|---|
100 | 100 |
|
101 | 101 |
public TouchControlShapeChanging(TwistyObject object) |
102 | 102 |
{ |
103 |
super( object!=null ? object.getObjectRatio() : 1.0f );
|
|
103 |
super(object);
|
|
104 | 104 |
|
105 | 105 |
mPoint = new float[3]; |
106 | 106 |
mCamera= new float[3]; |
... | ... | |
615 | 615 |
{ |
616 | 616 |
return mTouchedCubit; |
617 | 617 |
} |
618 |
|
|
619 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
620 |
|
|
621 |
public float returnRotationFactor(int[] numLayers, int row) |
|
622 |
{ |
|
623 |
return 1.0f; |
|
624 |
} |
|
625 | 618 |
} |
Also available in: Unified diff
move the returnRotationFactor() method from touchControl to TwistyObject (where it can be overridden)