Revision e6cf7283
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyBandagedAbstract.java | ||
---|---|---|
193 | 193 |
|
194 | 194 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
195 | 195 |
|
196 |
Static3D[] getCubitPositions(int size)
|
|
196 |
float[][] getCubitPositions(int size)
|
|
197 | 197 |
{ |
198 | 198 |
int numCubits = getNumCubits(); |
199 |
Static3D[] tmp = new Static3D[numCubits];
|
|
199 |
float[][] tmp = new float[numCubits][];
|
|
200 | 200 |
|
201 | 201 |
for(int cubit=0; cubit<numCubits; cubit++) |
202 | 202 |
{ |
203 |
float[] pos = getCubitPosition(cubit); |
|
204 |
tmp[cubit] = new Static3D(pos[0],pos[1],pos[2]); |
|
203 |
tmp[cubit] = getCubitPosition(cubit); |
|
205 | 204 |
} |
206 | 205 |
|
207 | 206 |
return tmp; |
Also available in: Unified diff
Change the Cubit center from a Static3D to a float[].
The point: now we can have more than one center, and bandaged objects need more than one, because in this way they are going to fill up their RotationRow bitmaps.