- Home /
How can i calculate with a script automatic the planes positions to make small building ?
I created 5 walls using a cube. And i can play now a very long time with the walls positions to make it to be in the right place. The ceiling the floor the walls. I was wondering if there is some way and how to calculate it to put them automatic in the right positions ?
Answer by Pengocat · Dec 15, 2016 at 12:04 AM
Without using a script you can use the scene view. When the move tool is active hold V and pick a vertex and drag it onto another vertex you want to align your selection with. This feature is called "Vertex snapping" If you however want to use a script then Renderer.bounds could be useful for alignment.
Your answer
Follow this Question
Related Questions
How can i prevent from mouse to collide with thirdpersoncontroller ? 0 Answers
How can i lock the mouse cursor in the middle of the screen ? 1 Answer
Why InputField don't have the property text ? 2 Answers
How can i change the walls height and keep the size for example 100x100 but height 0.1 ? 1 Answer
Why i'm getting UnassignedReferenceException when running the game ? 1 Answer