Original Post
Hi All,
I would like for every frame to let a grid of cubes [n][n] to be displaced in the Z Plane a specific distance, and after some delay, they should go back to their initial position, I've tried to the following code but it didn't work
I would like for every frame to let a grid of cubes [n][n] to be displaced in the Z Plane a specific distance, and after some delay, they should go back to their initial position, I've tried to the following code but it didn't work
while (1)
{
cube[0][5]._pos.y+=1.20f;
if(cube[0][1]._pos.y> 20.0f && bstop!=true)
{
cube[0][1]._pos.y=0;
bstop=true;
}
cube[0][5]._pos.y-=1.20f;
if(cube[0][1]._pos.y<-20.0f)
cube[0][1]._pos.y=0;
}