Revision fb1e9a31
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/objectlib/main/TwistyObject.java | ||
---|---|---|
1889 | 1889 |
return mTouchControl; |
1890 | 1890 |
} |
1891 | 1891 |
|
1892 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
1893 |
|
|
1894 |
public float[][] returnRotationFactor() |
|
1895 |
{ |
|
1896 |
float[][] factor = new float[mNumAxis][]; |
|
1897 |
|
|
1898 |
for(int ax=0; ax<mNumAxis; ax++) |
|
1899 |
{ |
|
1900 |
int numL = mNumLayers[ax]; |
|
1901 |
factor[ax] = new float[numL]; |
|
1902 |
for(int la=0; la<numL; la++) factor[ax][la] = 1.0f; |
|
1903 |
} |
|
1904 |
|
|
1905 |
return factor; |
|
1906 |
} |
|
1907 |
|
|
1892 | 1908 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
1893 | 1909 |
|
1894 | 1910 |
protected void setReader(JsonReader reader) |
Also available in: Unified diff
move the returnRotationFactor() method from touchControl to TwistyObject (where it can be overridden)