Project

General

Profile

« Previous | Next » 

Revision 5b893eee

Added by Leszek Koltunski about 4 years ago

Object node: size of screenWidth.

View differences:

src/main/java/org/distorted/effects/objectchange/ObjectChangeEffectRound.java
26 26
import org.distorted.library.type.Dynamic3D;
27 27
import org.distorted.library.type.Static3D;
28 28

  
29
import static org.distorted.objects.RubikObject.NODE_FBO_SIZE;
30

  
31 29
///////////////////////////////////////////////////////////////////////////////////////////////////
32 30

  
33 31
class ObjectChangeEffectRound extends ObjectChangeEffect
34 32
  {
35 33
  public int createEffectsPhase0(int duration)
36 34
    {
37
    float X = NODE_FBO_SIZE /3;
35
    float X = mObject[0].getNodeSize()/3.0f;
38 36

  
39 37
    mCubeEffectPosition[0] = new int[] {2,3};
40 38
    mCubeEffects[0]        = new Effect[mCubeEffectPosition[0].length];
......
58 56

  
59 57
  public int createEffectsPhase1(int duration)
60 58
    {
61
    float X = NODE_FBO_SIZE /3;
59
    float X = mObject[0].getNodeSize()/3.0f;
62 60

  
63 61
    mCubeEffectPosition[1] = new int[] {2,3};
64 62
    mCubeEffects[1]        = new Effect[mCubeEffectPosition[1].length];

Also available in: Unified diff