gamemash / platformer

0 stars 1 forks source link

Physics Rewrite #4

Closed dorsath closed 8 years ago

dorsath commented 8 years ago

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.

dorsath commented 8 years ago

Whoops. Added to much. Wanted the last 2 commits in a seperate pull request. Ohwelll. Enjoy.