After screwing around with the other physics approach I decided I just wanted to rework our current system.
I improved the efficiency by just looking in the direction of the current velocity. After a collision the entity will be asked to resolve it and given the block it collided with. One issue is that you need the old position, not sure anymore why, but you need it.
Furthermore, You can sort of stick to walls due to the break. I'm looking into that.
After screwing around with the other physics approach I decided I just wanted to rework our current system.
I improved the efficiency by just looking in the direction of the current velocity. After a collision the entity will be asked to resolve it and given the block it collided with. One issue is that you need the old position, not sure anymore why, but you need it.
Furthermore, You can sort of stick to walls due to the break. I'm looking into that.
Oh btw, goombas now fall with gravity.