Revision 5b893eee
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/effects/scramble/ScrambleEffectRotations.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
import java.util.Random; |
32 | 32 |
|
33 |
import static org.distorted.objects.RubikObject.NODE_FBO_SIZE; |
|
34 |
|
|
35 | 33 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
36 | 34 |
|
37 | 35 |
public class ScrambleEffectRotations extends ScrambleEffect |
... | ... | |
78 | 76 |
|
79 | 77 |
mCubeEffects[0] = new MatrixEffectQuaternion(dq, new Static3D(0,0,0)); |
80 | 78 |
|
81 |
float Z = NODE_FBO_SIZE /3;
|
|
79 |
float Z = mObject.getNodeSize()/3.0f;
|
|
82 | 80 |
|
83 | 81 |
Dynamic3D d0 = new Dynamic3D(duration, 0.5f); |
84 | 82 |
d0.setMode(Dynamic.MODE_PATH); |
Also available in: Unified diff
Object node: size of screenWidth.