i'm scripting a little summ'n summ'n, akin to a nuke; basically it destroys everything in a circular area. the way i've done it to date is less than optimal.
basically i've defined the centre point and then go round in ever increasing circles finding the closest object and setting its damage to 1. naturally, to keep it fairly fast i've set the degrees to increment by about 11.25 and the radius by about 5. this along with the eye candy makes it almost perfect.
almost is not good enough, however, as in the case of closely placed objects, nearestobject picks one and leaves the other - if there are enough objects in the area, some are inevitably missed. this destroys the effect of an all-encompassing fireball, what with loons running about inside going "ha ha you missed me"...
is there a way of building a fine enough mesh, using maths, to catch all objects within a 50 metre radius, while maintaining script speed?