Just a thought, I’ve not tried this, but thinking about the bridge sample- could you maintain a list of all objects involved in collisions and on a timer check the sum of their collective densities. Then, once a threshold is passed, break the bridge.
The big problem would be working out which objects are touching in one place- my thought would be to keep a register of which objects have collided. Considering that if all objects are firing collision start events whenever one of them lands on top of the others; if the timer is fast enough, it could check which objects have fired a collision start but not fired a collision end event. ie: The list of objects would be added to when collision start is fired, removed from when collision end is fired. Run through the list once every 5 milliseconds, for example(!), and check the items in the list, add their densities… etc.etc.
Working out where to break the bridge, er, um. Work out the lowest object in the above maintained list and break the link in the bridge just beneath it? [import]uid: 8271 topic_id: 2049 reply_id: 6034[/import]