Project

General

Profile

« Previous | Next » 

Revision 7ba38dd4

Added by Leszek Koltunski over 2 years ago

Major change: separate the notion of a TwistyObject and its Node. Now,

1) the Node stays when we change objects (this makes transitions faster)
2) it's possible to just create an Object without adding it to the Screen (now app needs to explicitly create the Node and add it to its Screen itself)

View differences:

src/main/java/org/distorted/objectlib/effects/scramble/ScrambleEffectRotations.java
76 76

  
77 77
    mCubeEffects[0] = new MatrixEffectQuaternion(dq, new Static3D(0,0,0));
78 78

  
79
    float Z = mObject.getNodeWidth()/3.0f;
79
    float Z = mObjectNode.getWidth()/3.0f;
80 80

  
81 81
    Dynamic3D d0 = new Dynamic3D(duration, 0.5f);
82 82
    d0.setMode(Dynamic.MODE_PATH);

Also available in: Unified diff