Revision 9ef0ad15
Added by Leszek Koltunski over 1 year ago
| src/main/java/org/distorted/objectlib/touchcontrol/TouchControlShapeChanging.java | ||
|---|---|---|
| 94 | 94 |
final float[] mCamera, mPoint; |
| 95 | 95 |
final Static3D[] mRotAxis; |
| 96 | 96 |
final TwistyObject mObject; |
| 97 |
int mTouchedCubit, mTouchedFace, mNumAxis; |
|
| 97 |
int mTouchedCubit, mTouchedCubitFace, mNumAxis;
|
|
| 98 | 98 |
FaceInfo[][] mInfos; |
| 99 | 99 |
float[][] mQuats; |
| 100 | 100 |
|
| ... | ... | |
| 660 | 660 |
|
| 661 | 661 |
float closestSoFar = NOT_TOUCHED; |
| 662 | 662 |
mTouchedCubit = -1; |
| 663 |
mTouchedFace = -1;
|
|
| 663 |
mTouchedCubitFace = -1;
|
|
| 664 | 664 |
int numQuats = mQuats.length; |
| 665 | 665 |
|
| 666 | 666 |
for(int cubit=0; cubit<mNumCubits; cubit++) |
| ... | ... | |
| 678 | 678 |
if( dist!=NOT_TOUCHED ) |
| 679 | 679 |
{
|
| 680 | 680 |
mTouchedCubit= cubit; |
| 681 |
mTouchedFace = face; |
|
| 681 |
mTouchedCubitFace = face;
|
|
| 682 | 682 |
closestSoFar = dist; |
| 683 | 683 |
mLastT[0] = mTouch[0]; |
| 684 | 684 |
mLastT[1] = mTouch[1]; |
| ... | ... | |
| 747 | 747 |
|
| 748 | 748 |
public int getTouchedCubitFace() |
| 749 | 749 |
{
|
| 750 |
return mTouchedFace; |
|
| 750 |
return mTouchedCubitFace;
|
|
| 751 | 751 |
} |
| 752 | 752 |
|
| 753 | 753 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
minor