Revision 2df35810
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/main/ObjectPreRender.java | ||
---|---|---|
485 | 485 |
|
486 | 486 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
487 | 487 |
|
488 |
public void addRotation(MovesFinished listener, int axis, int rowBitmap, int angle, long duration)
|
|
488 |
public void addRotation(MovesFinished listener, int axis, int rowBitmap, int bareAngle, int millPreDegree)
|
|
489 | 489 |
{ |
490 | 490 |
mAddRotation = true; |
491 | 491 |
|
492 |
int basicAngle= mNewObject.getBasicAngle()[axis]; |
|
493 |
int angle = bareAngle*(360/basicAngle); |
|
494 |
int duration = Math.abs(angle)*millPreDegree; |
|
495 |
|
|
492 | 496 |
mAddActionListener = listener; |
493 | 497 |
mAddRotationAxis = axis; |
494 | 498 |
mAddRotationRowBitmap = rowBitmap; |
Also available in: Unified diff
Simplifications