I’m writing easy tiled map based mostly sport utilizing LWJGL and Kotlin. I’m testing out completely different collision detection algorithms and keep away from utilizing out of field options for private causes.
I found out that operating some type of replace loop, checking the presence of collisions between some entity and all of the colliding objects could also be too heavy in future.
I wish to know if some type of collision detecting coroutine might be an applicable concept. Since there be just one such coroutine that can solely replace the parameters which might be despatched to render loop, I shouldn’t be dealing with too many issues with race circumstances. Nonetheless, I’m not certain that trendy 2nd video games use related approaches.