Project

General

Profile

« Previous | Next » 

Revision 10585385

Added by Leszek Koltunski almost 4 years ago

More progreess porting RubikCube.

View differences:

src/main/java/org/distorted/objects/Cubit.java
64 64
//
65 65
// We also have to remember that the group of unit quaternions is a double-cover of rotations
66 66
// in 3D ( q represents the same rotation as -q ) - so invert if needed.
67

  
67
/*
68 68
  private void normalizeScrambleQuat(Static4D quat)
69 69
    {
70 70
    final float MAX_ERROR = 0.0001f;
......
121 121

  
122 122
    quat.set(x,y,z,w);
123 123
    }
124

  
124
*/
125 125
///////////////////////////////////////////////////////////////////////////////////////////////////
126 126

  
127 127
  private void modifyCurrentPosition(Static4D quat)
......
284 284
  void removeRotationNow(Static4D quat)
285 285
    {
286 286
    mQuatScramble.set(RubikSurfaceView.quatMultiply(quat,mQuatScramble));
287
    normalizeScrambleQuat( mQuatScramble );
287
 //   normalizeScrambleQuat( mQuatScramble );
288 288
    modifyCurrentPosition(quat);
289 289
    }
290 290

  

Also available in: Unified diff