Impact icon indicating copy to clipboard operation
Impact copied to clipboard

Fix collisions when moving from one-way to slopes

Open matt-flaig opened this issue 4 years ago • 2 comments

When moving from one-way tiles to upward slopes, entities would get stuck at the edge of the slope and require upwards momentum to be able to continue moving forwards.

Here's a sample entity trying to move up a slope from a one-way tile, previously: Before

Here's the entity freely moving up the slope with this fix: After

matt-flaig avatar Mar 07 '22 22:03 matt-flaig

Glad to see someone is still watching impact.js .

I think you are an expert in impact.js area .

Do you tell me something about this https://github.com/phoboslab/Impact/issues/99 ? Thanks.

finscn avatar Mar 25 '25 15:03 finscn

I merged your solution and added some slopes in the test.js map (box2d physics demo) but the player still doesn't walk up neither down slopes

tempral avatar Sep 12 '25 06:09 tempral