Author Topic: How do the bricks work?  (Read 1406 times)

I just noticed that the way bricks work in Blockland is very complicated. All I know is that there is a brick grid. Does anyone know?



Something about a "Static Grid". Otherwise I have no idea.

I think that they used to be static shapes, now the .blb file determines points and actually creates triangles on the fly instead of using a pre built model allowing the triangles to be edited for performance like removing them when they cannot be seen.

I thought this was a topic of how to build lol.

I believe there is some invisible grid that lines the bricks up.
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.

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.

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.
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.

Go learn the fundamentals of collision and stuff in Torque. I have no idea.

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.
Not quite, just the ones attached at either the top or bottom of the brick.

A brick can be broken with the hammer if the game can find a path for all surrounding bricks to the ground that does not pass through it. At this point, if some would be left floating, the hammer does not kill the brick, while the wands kill it and everything that would be left floating.

Can you be more specific about what you want to know and what you are trying to accomplish? The brick system is quite complicated.

Can you be more specific about what you want to know and what you are trying to accomplish? The brick system is quite complicated.
Oh my! :o

That's the first post I've ever noticed of yours.

Can you be more specific about what you want to know and what you are trying to accomplish? The brick system is quite complicated.

That was fast.

Can you be more specific about what you want to know and what you are trying to accomplish? The brick system is quite complicated.

Holy cow, your last post was on August 31, dude! You are going to make us have an heart attack.