Some of you may have noticed my other post on creating custom bricks, first and foremost thats for the help. I was able to modify a 2x2x3 round brick to 2x2x6, and to get it to load successfully into the game using Badspots "Brick Add-On Example". There is one problem though...
The object has no collision. I can walk through it, and I cannot paint it or destroy it (nothing for the hammer or paint to hit).
The file attached includes a custom 2x2x3 round brick, that has 4 faces on the top and bottom, and 12 sides to round it out. Only dimensional changes were made. Just for the record, when placing the 2x2x3 brick script into the addon the same thing happens.
Here is the blb file...
2 2 6
SPECIAL
uu
XX
xx
xx
xx
dd
uu
xx
xx
xx
XX
dd
0
COVERAGE: //TBNESW
0 : 4
0 : 4
0 : 4
0 : 12
0 : 12
0 : 12
----------------- Top quads:
6
TEX:TOP
POSITION:
0 0 3
0 1 3
0.50 0.86 3
0.86 0.50 3
UV COORDS:
-1.0 1.0
-1.0 2.0
-1.5 1.86
-1.86 1.5
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:TOP
POSITION:
0 0 3
0.86 0.50 3
1.0 0 3
0.86 -0.50 3
UV COORDS:
-1.0 1.0
-1.86 1.5
-2.0 1.0
-1.86 0.5
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:TOP
POSITION:
0 0 3
0.86 -0.50 3
0.50 -0.86 3
0 -1.0 3
UV COORDS:
-1.0 1.0
-1.86 0.5
-1.5 0.14
-1.0 0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:TOP
POSITION:
-0.86 0.50 3
-0.50 0.86 3
-0 1 3
-0 0 3
UV COORDS:
1.86 1.5
1.5 1.86
1.0 2.0
1.0 1.0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:TOP
POSITION:
-0.86 -0.50 3
-1.0 0 3
-0.86 0.50 3
-0 0 3
UV COORDS:
1.86 0.5
2.0 1.0
1.86 1.5
1.0 1.0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:TOP
POSITION:
-0 -1.0 3
-0.50 -0.86 3
-0.86 -0.50 3
-0 0 3
UV COORDS:
1.0 0
1.5 0.14
1.86 0.5
1.0 1.0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
----------------- Bottom quads:
6
TEX:BOTTOMLOOP
POSITION:
0.86 0.50 -3
0.50 0.86 -3
0 1 -3
0 0 -3
UV COORDS:
-1.86 1.5
-1.5 1.86
-1.0 2.0
-1.0 1.0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:BOTTOMLOOP
POSITION:
0.86 -0.50 -3
1.0 0 -3
0.86 0.50 -3
0 0 -3
UV COORDS:
-1.86 0.5
-2.0 1.0
-1.86 1.5
-1.0 1.0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:BOTTOMLOOP
POSITION:
0 -1.0 -3
0.50 -0.86 -3
0.86 -0.50 -3
0 0 -3
UV COORDS:
-1.0 0
-1.5 0.14
-1.86 0.5
-1.0 1.0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:BOTTOMLOOP
POSITION:
-0 0 -3
-0 1 -3
-0.50 0.86 -3
-0.86 0.50 -3
UV COORDS:
1.0 1.0
1.0 2.0
1.5 1.86
1.86 1.5
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:BOTTOMLOOP
POSITION:
-0 0 -3
-0.86 0.50 -3
-1.0 0 -3
-0.86 -0.50 -3
UV COORDS:
1.0 1.0
1.86 1.5
2.0 1.0
1.86 0.5
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:BOTTOMLOOP
POSITION:
-0 0 -3
-0.86 -0.50 -3
-0.50 -0.86 -3
-0 -1.0 -3
UV COORDS:
1.0 1.0
1.86 0.5
1.5 0.14
1.0 0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
----------------- North quads:
0
----------------- East quads:
0
----------------- South quads:
0
----------------- West quads:
0
----------------- Omni quads:
12
TEX:SIDE
POSITION:
0.50 0.86 3
0.00 1.00 3
0.00 1.00 -3
0.50 0.86 -3
UV COORDS:
0.2 0
0.8 0
0.8 1
0.2 1
NORMALS:
0.50 0.86 0
0.00 1.00 0
0.00 1.00 0
0.50 0.86 0
TEX:SIDE
POSITION:
0.86 0.50 3
0.50 0.86 3
0.50 0.86 -3
0.86 0.50 -3
UV COORDS:
0.2 0
0.8 0
0.8 1
0.2 1
NORMALS:
0.86 0.50 0
0.50 0.86 0
0.50 0.86 0
0.86 0.50 0
TEX:SIDE
POSITION:
1.00 0.00 3
0.86 0.50 3
0.86 0.50 -3
1.00 0.00 -3
UV COORDS:
0.2 0
0.8 0
0.8 1
0.2 1
NORMALS:
1.00 0.00 0
0.86 0.50 0
0.86 0.50 0
1.00 0.00 0
TEX:SIDE
POSITION:
0.86 -0.50 3
1.00 0.00 3
1.00 0.00 -3
0.86 -0.50 -3
UV COORDS:
0.2 0
0.8 0
0.8 1
0.2 1
NORMALS:
0.86 -0.50 0
1.00 0.00 0
1.00 0.00 0
0.86 -0.50 0
TEX:SIDE
POSITION:
0.50 -0.86 3
0.86 -0.50 3
0.86 -0.50 -3
0.50 -0.86 -3
UV COORDS:
0.2 0
0.8 0
0.8 1
0.2 1
NORMALS:
0.50 -0.86 0
0.86 -0.50 0
0.86 -0.50 0
0.50 -0.86 0
TEX:SIDE
POSITION:
0.00 -1.00 3
0.50 -0.86 3
0.50 -0.86 -3
0.00 -1.00 -3
UV COORDS:
0.2 0
0.8 0
0.8 1
0.2 1
NORMALS:
0.00 -1.00 0
0.50 -0.86 0
0.50 -0.86 0
0.00 -1.00 0
////////////// x minus
TEX:SIDE
POSITION:
-0.50 0.86 -3
-0.00 1.00 -3
-0.00 1.00 3
-0.50 0.86 3
UV COORDS:
0.2 1
0.8 1
0.8 0
0.2 0
NORMALS:
-0.50 0.86 0
-0.00 1.00 0
-0.00 1.00 0
-0.50 0.86 0
TEX:SIDE
POSITION:
-0.86 0.50 -3
-0.50 0.86 -3
-0.50 0.86 3
-0.86 0.50 3
UV COORDS:
0.2 1
0.8 1
0.8 0
0.2 0
NORMALS:
-0.86 0.50 0
-0.50 0.86 0
-0.50 0.86 0
-0.86 0.50 0
TEX:SIDE
POSITION:
-1.00 0.00 -3
-0.86 0.50 -3
-0.86 0.50 3
-1.00 0.00 3
UV COORDS:
0.2 1
0.8 1
0.8 0
0.2 0
NORMALS:
-1.00 0.00 0
-0.86 0.50 0
-0.86 0.50 0
-1.00 0.00 0
TEX:SIDE
POSITION:
-0.86 -0.50 -3
-1.00 0.00 -3
-1.00 0.00 3
-0.86 -0.50 3
UV COORDS:
0.2 1
0.8 1
0.8 0
0.2 0
NORMALS:
-0.86 -0.50 0
-1.00 0.00 0
-1.00 0.00 0
-0.86 -0.50 0
TEX:SIDE
POSITION:
-0.50 -0.86 -3
-0.86 -0.50 -3
-0.86 -0.50 3
-0.50 -0.86 3
UV COORDS:
0.2 1
0.8 1
0.8 0
0.2 0
NORMALS:
-0.50 -0.86 0
-0.86 -0.50 0
-0.86 -0.50 0
-0.50 -0.86 0
TEX:SIDE
POSITION:
-0.00 -1.00 -3
-0.50 -0.86 -3
-0.50 -0.86 3
-0.00 -1.00 3
UV COORDS:
0.2 1
0.8 1
0.8 0
0.2 0
NORMALS:
-0.00 -1.00 0
-0.50 -0.86 0
-0.50 -0.86 0
-0.00 -1.00 0
I believe that this:
0
COVERAGE: //TBNESW
0 : 4
0 : 4
0 : 4
0 : 12
0 : 12
0 : 12
is what would control the collision, but I havn't been able to identify how exactly it works.
It seems to me that the first 0 is the enable/disable trigger. 0 for off 1 for on. When enabled i can land ontop of what seems to be a 2x2x3 brick, but all modifications i make to "coverage" dont seem to effect the collision.
When reviewing some other .blb files I noticed that rather than a coverage section, there was simple a xyz collision field. for example it would be:
1
0 0 0
2 2 6
for a rectangular collision. because this is a special brick, I don't believe the game knows how to set up the collision files automatically, so it has to be scripted.
any and all help with this would be much appreciated. with getting this to work, i'll keep playing around.
~poent