Project

General

Profile

« Previous | Next » 

Revision fb377dae

Added by Leszek Koltunski over 3 years ago

Major progress with Dino; rotations (almost?) work now.

View differences:

src/main/java/org/distorted/objects/RubikCube.java
307 307
    return mMeshes[index].copy(true);
308 308
    }
309 309

  
310
///////////////////////////////////////////////////////////////////////////////////////////////////
311

  
312
  float returnMultiplier()
313
    {
314
    return getSize();
315
    }
316

  
310 317
///////////////////////////////////////////////////////////////////////////////////////////////////
311 318
// PUBLIC API
312 319

  
......
324 331

  
325 332
///////////////////////////////////////////////////////////////////////////////////////////////////
326 333

  
327
  public float returnMultiplier()
334
  public int computeRowFromOffset(float offset)
328 335
    {
329
    return getSize();
336
    return (int)(getSize()*offset);
330 337
    }
331 338

  
332 339
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff