The rotation logic that aligns the fighter with the ground angle doesn’t take into account the difference of distance of the two feet to the ground. So when a fighter is standing on the edge between two terrain blocks, they get rotated awkwardly.

1754059425_angle_rect.png

J'ai essayé avec un angle limite :

if (Math.abs(angleDeg) > 60) angle = FlxMath.lerp(angle, 0, 0.2); else angle = FlxMath.bound(angleDeg, -20, 20);

Ça fonctionne pour les angles droits, mais ce n'est pas génial sur les arrondis.
Il faut que j'y réfléchisse.