Project

General

Profile

« Previous | Next » 

Revision f0450fcc

Added by Leszek Koltunski about 3 years ago

Change Cubit.mRotationRow[] from an index pointing at a single rotating layer to a bitmap potentially pointing at several layers.
(in preparation for bandaged objects)

View differences:

src/main/java/org/distorted/objects/Cubit.java
159 159

  
160 160
    for(int axis=0; axis<mNumAxis; axis++)
161 161
      {
162
      result += (1<<(mRotationRow[axis]+accumulativeShift));
162
      result += (mRotationRow[axis]<<accumulativeShift);
163 163
      accumulativeShift += ObjectList.MAX_OBJECT_SIZE;
164 164
      }
165 165

  

Also available in: Unified diff