Revision c7cbf4db
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/objects/MovementRedi.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
class MovementRedi extends Movement |
27 | 27 |
{ |
28 |
static final float DIST3D = 0.25f;
|
|
29 |
static final float DIST2D = 0.25f;
|
|
28 |
static final float DIST3D = 0.5f; |
|
29 |
static final float DIST2D = 0.5f; |
|
30 | 30 |
|
31 | 31 |
static final Static3D[] FACE_AXIS = new Static3D[] |
32 | 32 |
{ |
... | ... | |
46 | 46 |
|
47 | 47 |
int computeRowFromOffset(int face, int size, float offset) |
48 | 48 |
{ |
49 |
return offset<DIST2D ? 0:1;
|
|
49 |
return offset<DIST2D ? 0:2;
|
|
50 | 50 |
} |
51 | 51 |
|
52 | 52 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Add the Redi Cube: part3.