How do i make cube Grid like Minecraft?

its like the air block when where the camera follows the air block will touch the ground
anywhere.

i cant create the script like this :frowning:

var CubeGrid : GameObject;

function CubeGrid

CubeGrid.Create.axis = x,y

i really get this wrong :frowning:

Here’s an open source Minecraft-like starter package:
MinePackage - Minecraft starter package

I believe you that will find the necessary code your are looking for in that thread.

You could look at these links

and

http://wiki.unity3d.com/index.php?title=SnapToGrid

youre malay?