Page 1 of 1

STI+Bump = collision issues

Posted: Sun Apr 05, 2020 10:11 am
by Thorkal
Hi everyone,

I use tiled maps with the sti+bump combo. The collisions seem to be well handled for characters+environment tiles, but when I try to handle character+character collisions, the collision seem to happen when they not actually touching. I don't see where the issue come from. I tried to simply return "slide" in the function handling collision (MoveCharacters:unidirectional_Col in ecs/systems/moveCharacters.lua), and they collided well (there wasn't space between my player et the enemies when they collided).

Also, I try to use ECS for my project, so if you see architecture mistakes, let me know.

Thank you