voxelinc / voxellancer

A Game about Voxels in Space
http://voxellancer.chrdw.de
15 stars 2 forks source link

Shockwave #65

Closed mrzzzrm closed 10 years ago

mrzzzrm commented 10 years ago

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?

mrzzzrm commented 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:

mrzzzrm commented 10 years ago

This is mostly replaced by #288