- Home /
Cube Morph to Adjacent Cube
Hey guys, I'm attempting to make a collectable terrain setup similar to minecraft. If you play minecraft, you'll understand. For you minecraft players, in minecraft the fences are a mere stump when not adjacent to another block, however when a block is placed next to it, the fence connects to it. I'm trying to use this concept to make a collectable (mineable) terrain so that if the cubes were placed like stairs they would morph together making it feel like a more natural terrain. Any suggestions of how this might be done? Thanks!
I'm actually trying to do exactly the same thing, but I have a lot more morphable adjacent blocks and don't want to have to make 5 different combinations as well as different lods for each one :(
Answer by Loius · Jan 29, 2013 at 11:08 PM
Whenever you place a block (which IS a separate function, and if it's not, it needs to be), check each adjacent tile and choose a different block (or just rotate the new block) based on its surroundings.
Your answer
Follow this Question
Related Questions
How to make a dragable cube? (iphone) 1 Answer
multipart material for texturing a unity default cube 0 Answers
character push and drag box 0 Answers
Cube Rotating & Moving 1 Answer
How to apply shaders on many surfaces quickly? Please help. 1 Answer