Revision 11fa413d
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/touchcontrol/TouchControl.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
package org.distorted.objectlib.touchcontrol; |
21 | 21 |
|
22 |
import org.distorted.library.type.Static2D; |
|
23 | 22 |
import org.distorted.library.type.Static4D; |
24 | 23 |
|
25 | 24 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
44 | 43 |
|
45 | 44 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
46 | 45 |
|
47 |
public TouchControl() |
|
46 |
public TouchControl(float ratio)
|
|
48 | 47 |
{ |
49 |
mObjectRatio = 1.0f;
|
|
48 |
mObjectRatio = ratio;
|
|
50 | 49 |
} |
51 | 50 |
|
52 | 51 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
61 | 60 |
public abstract boolean objectTouched(Static4D rotatedTouchPoint, Static4D rotatedCamera); |
62 | 61 |
public abstract void newRotation(int[] output, Static4D rotatedTouchPoint); |
63 | 62 |
public abstract void getCastedRotAxis(float[] output, Static4D quat, int rotIndex); |
64 |
public abstract int getTouchedFace(); |
|
65 |
public abstract float[] getTouchedPoint3D();
|
|
63 |
public abstract int getTouchedCubitFace();
|
|
64 |
public abstract int getTouchedCubit();
|
|
66 | 65 |
public abstract float returnRotationFactor(int[] numLayers, int row); |
67 | 66 |
} |
Also available in: Unified diff
Make the ShapeChanging the default TouchControl during MODE_REPLACE.