fix(player): el jugador empentat es queda en stand, no walk

This commit is contained in:
JailDesigner committed 2026-04-24 19:00:04 +02:00
1 parent e22f3240da
commit 511f8d5b09
3 files changed
+25 -1

No files matched your search

+3
View File
@@ -130,6 +130,9 @@ namespace {
const float VY = pusher->getIntendedVY() * push_factor;
pusher->setIntendedVelocity(VX, VY);
pushed->setIntendedVelocity(VX, VY);
// El pushed es mourà sense input propi: marquem-ho perquè
// `applyMovement` no active la variant `walk` de l'animació.
pushed->setBeingPushed(true);
}
// Ordre d'`applyMovement`: en push, el pushed ha de moure's abans