H3ro

03-25-2006, 06:11 PM

I want to create a grid of cubes, but cant find a good way to do it.

If anyone could help, it would be very kindly

This is what i have so far:

{

//Create a grid of cubes

int $cubeW =10 ; //no of cubes in X

int $cubeB =10 ; //no of cubes in Z

//Creating the Cubes

int $noCubeW = 0;

int $noCubeB = 0;

while ($noCubeW <= $cubeW)

{

while ($noCubeB <= $cubeB)

{polyCube -w 1

-h 1

-d 1

-sx 1

-sy 1

-sz 1

-ax 0 1 0

-tx 1

-ch 1;

move -r $noCubeB 0 $noCubeW;

$noCubeB++;

}

$noCubeW++;

}

But, it dont work....

Thanks for you time:)

If anyone could help, it would be very kindly

This is what i have so far:

{

//Create a grid of cubes

int $cubeW =10 ; //no of cubes in X

int $cubeB =10 ; //no of cubes in Z

//Creating the Cubes

int $noCubeW = 0;

int $noCubeB = 0;

while ($noCubeW <= $cubeW)

{

while ($noCubeB <= $cubeB)

{polyCube -w 1

-h 1

-d 1

-sx 1

-sy 1

-sz 1

-ax 0 1 0

-tx 1

-ch 1;

move -r $noCubeB 0 $noCubeW;

$noCubeB++;

}

$noCubeW++;

}

But, it dont work....

Thanks for you time:)