Height Field Fluids simulation

BlitzMax Forums/BlitzMax Programming/Height Field Fluids simulation

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Is that code even supposed to work?

Unhandled Exception:Attemp to index array element beyond array length


at
result[x] :+(current[x - 1] + current[x + 1] - previous[x] * 3) / 4