- Home /
MaK like building script help...
Hey! I saw this video recently and I really want to recreate the building system for my game. It looks like it can be done in Unity3D, but it appears to be following a grid, which I don't know how to make. I am only interested in positioning the blocks and then converting them to a rigidbody so I can apply force to them. Oh and also removing them from the rigidbody when they are detached from the structure.
The video is here: http://www.youtube.com/watch?v=7sXnwa9bt6g&feature=g-all-u
Thanks in advance.
P.S. In the video, you can see a nice highlighting effect that appears when a cube is positioned. That's a shader, right?
honestly you just need to download Unity, and start working through the documentation and tutorials.
your question is way too broad to offer meaningful help.
for exampleit's very easy to add/take away a rigidbody in your code. suggest you glance at the "rigidbody" page in the documentation
But you just have to build general skills. Good luck ! Someone will orbably close this question since it's so general
O$$anonymous$$, I hopefully can attach a rigidbody to a GameObject. How can I position the cube like that? What I am mainly interested in, is the positioning system.
there's no concise answer.
it would be like asking "how does photoshop work"?
very likely, if you have your mouse near an existing cube, it defines a new possible position by taking the existing cuibe and adding one height to it. if you click to create, use that new position for the new cube.
if you ask a REALLY SPECIFIC QUESTION -- include a screen shot (not a long video) -- about some specific aspect I'm sure people will help
I kinda figured it out on myself, but the cube is not of 1 height and what is 1 (cm, m?). That's what I am asking. How to apply a grid.
basically - it is meters
if you want to "click" something to a posiion, you could try something like
x position = $$anonymous$$athf.Round( x position )
suggest you read the doco for the $$anonymous$$athf class
Your answer
Follow this Question
Related Questions
Can someone fix this building and breaking code? 0 Answers
Help! Saving blocks in a grid-based building system 0 Answers
problem with gap at specific radius 0 Answers
Unity Wall placement help 0 Answers