All pastes #350570 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-11 15:36 UTC
rendered paste body
        void setScale(float x, float y, float z){
                base.setScale(x,y,z);
                foreach(TerrainNode part; chunks){
                        part.setScale(x,y,z);
                }

                ubyte a = 0;
                while (a < width*depth){
                        chunks[a].setPosition(
                                        -width/2 * x/2 + a/width * x,      
                                        y / 4,
                                        -depth/2 * z/2 + a%width * z);
                        Log.write(-width/2 * x/2 + a/width * x);
                        Log.write(-depth/2 * z/2 + a%width * z);
                        a++;
                }
        }