Project

General

Profile

« Previous | Next » 

Revision 9dacabea

Added by Leszek Koltunski over 4 years ago

library: Fix DynamicQuat
cube app: progress with ScrambleEffects

View differences:

src/main/java/org/distorted/library/type/Dynamic.java
301 301
    if( error ) printBase("");
302 302
    }
303 303

  
304
///////////////////////////////////////////////////////////////////////////////////////////////////
305

  
306
  int getNext(int curr, float time)
307
    {
308
    switch(mMode)
309
      {
310
      case MODE_LOOP: return curr==numPoints-1 ? 0:curr+1;
311
      case MODE_PATH: return time<0.5f ? (curr+1) : (curr==0 ? 1 : curr-1);
312
      case MODE_JUMP: return curr==numPoints-1 ? 1:curr+1;
313
      default       : return 0;
314
      }
315
    }
316

  
304 317
///////////////////////////////////////////////////////////////////////////////////////////////////
305 318

  
306 319
  private void checkAngle(int index)

Also available in: Unified diff