- Home /
How to create some kind of guide to place cubes
How to create a guide so where i can place my cubes on the floor to build a house for example. Like minecraft
Here is the guide i mean click this link watch the guy build the house in this game this is wat i mean http://www.youtube.com/watch?v=6QxJz601nE8
You can see that hes placing the cubes perfectly on the floor and on the other cubes how do you do that
Answer by Alex 9 · Mar 27, 2011 at 03:03 AM
I'm not 1000% sure if this would work but you could make an invisble object starting from the center of the camera reaching out to watever the rage should be. Then you could check for collision between the invisible cube and the ground/cubes and do whatever it is you wan to do.
Answer by DaveA · Mar 27, 2011 at 03:12 AM
What I do is use Photoshop to make a grid texture (like a 2D ruler), then add that to a plane in the scene.
Answer by user-10774 (yahoo) · Mar 27, 2011 at 04:44 AM
you could use Object.Instantiate , and set the objects to a certain postion , and then apply is.kinematic = true if you want to create solid blocks. however it would still require you to build one first so then you could build many using code.
you can also find some way of using a gui to select objects and make them solid when the player drops them and confirms.
keyboardmouse
ObjectA make object of certain dimesion and size.
Object B make object of certain size.
You could also make a call to game object with a tag so you could use imported models to make up buildings. I am not sure exactly what you want. But mine craft if i remember correctly allows you to destroy cubes and place cubes. and make things by mining items.
could you make a script for that please it would be very very helpful please do.