Hi Lambert,

sounds like an interesting project.

How about the following:

You could represent the polynomial as a list of points (x,y) - and when the bomb hits the "ground" the points close to the point of impact will be affected.

Example:

Points: (0,10) - (5,15) - (10,20) - (15,15) - (20,10)

The bomb hits the point (10,20).. a few options:

a) decrease y value (i.e. (10,20) is changed to (10,15)

b) First decrease the points y value with, say 5, then decrease the value of the "neighbours points" (adjacenct points) with e.g. 2.

It is most likely not the most elegang solution, but it might be enough to get you started

/Svend Rost

/Svend Rost