Revision a135652b
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/main/Movement.java | ||
---|---|---|
270 | 270 |
|
271 | 271 |
private float[] computeBorder(float[] cuts, boolean[] rotatable, int size) |
272 | 272 |
{ |
273 |
if( cuts==null ) return null; |
|
274 |
|
|
273 | 275 |
int len = cuts.length; |
274 | 276 |
float[] border = new float[len]; |
275 | 277 |
|
... | ... | |
382 | 384 |
private int computeRowFromOffset(int face, int axisIndex, float offset) |
383 | 385 |
{ |
384 | 386 |
float[] borders = mTouchBorders[axisIndex]; |
387 |
|
|
388 |
if( borders==null ) return 0; |
|
389 |
|
|
385 | 390 |
int len = borders.length; |
386 | 391 |
float A = mA[face][axisIndex]; |
387 | 392 |
|
Also available in: Unified diff
Improve cuboids: single-layer cuboids should work. 1x1x1 does!