filbs111 / box2d-learning

0 stars 0 forks source link

add simple explosions #8

Closed filbs111 closed 7 years ago

filbs111 commented 7 years ago

detonate bomb object after time delay or collision.

apply reaction force to objects. keep simple - distance dependence fine - shielding by other objects unnecessary time delay due to wave/force time dependence unnecessary - simple impuse at time of explosion ok. more complicated stuff can come later. might want something like pressure field, or box2d "virtual particles" for force at a distance. (might also use for rocket engine backblast)

have some simple canvas explosion effect similar to shown in turn-n-burn project again no need to be affected by surroundings yet.