function fxDtsBrick::boundingBox(%brick)
{
//%brick.getWorldBox(); does all of this, unless I'm remembering the name wrong
//That's not the point, though, because this is just supposed to be an example.
%data = %brick.getDatablock();
if(%brick.getAngleID() & 1)
{ %sizeX = %data.brickSizeY / 2; %sizeY = %data.brickSizeX / 2; }
else { %sizeX = %data.brickSizeX / 2; %sizeY = %data.brickSizeY / 2; }
%sizeZ = %data.brickSizeZ / 5;
return %sizeX SPC %sizeY SPC %sizeZ; //The size of the brick in Torque units.
//Explanation: The width and length of the brick are in studs, which are a half TU each.
//The height, however, is in plates - if you plant down a 4x cube, you'll see it's 4 studs wide and 10 plates high.
//Divide 4 studs by 2 studs/TU to get 2 TU, then divide 10 plates by that 2 TU to get 5 plates/TU - there's your answer.
}
EDIT: Also, don't completely overwrite your original post to ask a new question - make it clear that the first issue is solved and add a new one. Otherwise people might not be able to find the already-solved answer to their question and have to post the same exact topic again.