fix(player): el jugador empentat es queda en stand, no walk
This commit is contained in:
1 parent
e22f3240da
commit
511f8d5b09
3 files changed
+25
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user