Closed mrzzzrm closed 10 years ago
I need your ideas on this one... A possible (though a bit incorrect) simulation of a shockwave would be an (invisible) sphere increasing radius with a given speed, that deals damage and impuls on everything it hits underway. Every WorldObject would receive only one impulse and only voxels that have a clean line between themselves and the center of the shockwave would receive damage.
Now even this proves to be pretty complicated to program (what voxels are intersecting with a sphere-hull currently? are there voxels on a line?)
More simple would be:
This is mostly replaced by #288
Gathering thoughts and ideas
Shockwaves are a way of dealing impacts (and thus damage) beyond the sole mass and velocity of an object an can thus be used to simulate bullet and rocket explosions and the pressure wave caused by ships exploding nearby.
Thoughts?