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

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

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