I'm currently working on a script that can be introduced to .cga code to show damage to buildings and other items within the scene. I'm currently working from the information at this link: simple procedural destruction . I'm able to get it to depict damage to the buildings, but my damage is showing up underneath the buildings, and the building models themselves are still in tact. Does anyone have any ideas? I'm currently playing with the z values to see if I can move the debris polygons to the level of the original models. Any assistance is appreciated. Thanks in advance.
Here's a screenshot of my progress so far:
I did not have that issue .. of course .. haha ..
you have to make sure that the rubble 'knows' how far to fall down.
basically, use a generic attribute with scope.elevation at the very beginning of the shape. this saves the 'soil' height the building stands on. then, translate each piece by it's own scope.elevation minus the building's floor height.