Revision cf097581
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/objects/Movement.java | ||
---|---|---|
117 | 117 |
private int computeRotationIndex(int faceAxis, float[] move2D, int[] enabled) |
118 | 118 |
{ |
119 | 119 |
float cosAngle, minCosAngle = Float.MAX_VALUE; |
120 |
int minIndex=-1, index;
|
|
120 |
int minIndex=0, index;
|
|
121 | 121 |
float m0 = move2D[0]; |
122 | 122 |
float m1 = move2D[1]; |
123 | 123 |
float len = (float)Math.sqrt(m0*m0 + m1*m1); |
Also available in: Unified diff
Minor.