Revision ab31cf6f
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/main/Movement8.java | ||
---|---|---|
29 | 29 |
private static final float DIST3D = SQ6/6; |
30 | 30 |
private static final float DIST2D = SQ3/6; |
31 | 31 |
|
32 |
private static final float[] D3D = { DIST3D,DIST3D,DIST3D,DIST3D,DIST3D,DIST3D,DIST3D,DIST3D }; |
|
33 |
|
|
32 | 34 |
public static final Static3D[] FACE_AXIS = new Static3D[] |
33 | 35 |
{ |
34 | 36 |
new Static3D(+SQ6/3,+SQ3/3, 0), new Static3D(-SQ6/3,-SQ3/3, 0), |
... | ... | |
41 | 43 |
|
42 | 44 |
public Movement8(Static3D[] rotAxis,float[][] cuts, boolean[][] rotatable, float size, int type, int[][][] enabled) |
43 | 45 |
{ |
44 |
super(rotAxis, FACE_AXIS, cuts, rotatable, DIST3D, size, type, enabled);
|
|
46 |
super(rotAxis, FACE_AXIS, cuts, rotatable, D3D, size, type, enabled); |
|
45 | 47 |
} |
46 | 48 |
|
47 | 49 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Cuboids: movement.