i see whats your problem.. i will explain and after post a working code:
The problem its in
dbPositionObject ( i, dbObjectPositionX ( i ) , dbObjectPositionY (i) , dbObjectPositionZ ( i)+4);
that code puts all the cubes in same place... (0,0,4)
the onther problem its the camera.. in 0,0,0 it cant see the Z
so maybe use a code like this , i will show it in the X and not in Z
int b; // a int we will use
dbMakeObjectCube ( 1, 2 ); // make first cube in 0,0,0
dbColorObject (1, dbRGB ( 0, 225, 0 )); // colorise first cube
for(int i=2; i<10; i++)
{
b=i-1; // in b there is the ID of the cube that before
dbMakeObjectCube ( i, 2 ); // makes the cube
dbPositionObject ( i, dbObjectPositionX ( b)+4 , dbObjectPositionY (i) , dbObjectPositionZ ( i)); // dbObjectPositionX ( b)+4 makes that the X its the X of the cube before +4
dbColorObject (i, dbRGB ( 0, 225, 0 )); // colorise i
}
dbPositionCamera(0,0,-20); // to can see the cubes not from too close
If someone need something, add me to your msn
Was SuperKid , now AlexZinn
