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

Popular posts from this blog

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -