Project

General

Profile

« Previous | Next » 

Revision fb1e9a31

Added by Leszek Koltunski 12 months ago

move the returnRotationFactor() method from touchControl to TwistyObject (where it can be overridden)

View differences:

src/main/java/org/distorted/objectlib/main/ObjectControl.java
346 346

  
347 347
      mTouchControl.getCastedRotAxis(mAxis,mQuat,mCurrentAxis);
348 348
      correctRotationAxis();
349
      mRotationFactor = mTouchControl.returnRotationFactor(numLayers,mCurrentRow);
349
      mRotationFactor = mTouchControl.returnRotationFactor(mCurrentAxis,mCurrentRow);
350 350
      if( mRotAxisType != ROT_AXIS_NOT_NORMAL ) mNormalRotAngle = computeNormalRotAngle(mNormalTouchPoint[0]-x,mNormalTouchPoint[1]-y);
351 351

  
352 352
      if( object.beginNewRotation( mCurrentAxis, mCurrentRow ) )

Also available in: Unified diff