Blockland Forums > General Discussion
How do the bricks work?
Chrono:
--- Quote from: BlockLeg on October 01, 2010, 10:27:13 PM ---I thought this was a topic of how to build lol.
I believe there is some invisible grid that lines the bricks up.
--- End quote ---
No, the engine renders the bricks to certain snap points, done by math.
If you create a brick from script with some wild and wacky position, the collision is where you created the brick, but the render is at the closest 'snap point' for that brick's size.
Squideey:
I actually mean how the structural system works. Me and Eksi can not find out how it can tell if a brick can or cannot be broken.
Doomonkey:
--- Quote from: Squideey on October 01, 2010, 10:57:37 PM ---I actually mean how the structural system works. Me and Eksi can not find out how it can tell if a brick can or cannot be broken.
--- End quote ---
From what I understand, when a brick is broken, all bricks adjacent to it check to see if they are floating, and if so, they break. This process just continues until all of the floating bricks are destroyed.
I think.
Corbiere:
Go learn the fundamentals of collision and stuff in Torque. I have no idea.
Texan101:
--- Quote from: Doomonkey on October 01, 2010, 11:06:19 PM ---From what I understand, when a brick is broken, all bricks adjacent to it check to see if they are floating, and if so, they break. This process just continues until all of the floating bricks are destroyed.
I think.
--- End quote ---
Not quite, just the ones attached at either the top or bottom of the brick.