iiceman40 / bomberman

0 stars 0 forks source link

Collision Detection #1

Open iiceman40 opened 10 years ago

iiceman40 commented 10 years ago

Add working collision detection that doesnt effect peformance.

iiceman40 commented 10 years ago

went back to physijs with some optimizations. should work better now but needs testing. also it would be good to emit the impulse only if the direction changes and not all them time when a key is pushed.

example like it is now: key pushed -> stop, emit impulse key still pushed -> stop, emit impule key has benn let go -> stop

better might be: key pushed -> emit impulse key still pushed -> do nothing (object keeps moving as long as there is no blocking object or friction) key has been let go -> stop