LibGDX smart collision detection actors -
so i'm creating towerdefence-game lot(5-25) towers exist.
now i'm trying think of smart way handle collision detection, meaning spawning creature in range.
the obvious way (for me @ least) create list of creatures , list of towers, every tower checks, if creature in reach.
but i'm pretty 20 towers game crash (especially on smartphone), since tower collision-checks every frame.
isn't there kind of way, tower waits collision, , if happens, reacts on it? (like listener, collisions)
Comments
Post a Comment