Use look_dir when blocking

This commit is contained in:
timokoesters 2019-08-25 14:29:36 +02:00
parent 3258fa3a3c
commit 01410569a4
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097

View File

@ -94,7 +94,10 @@ impl<'a> System<'a> for Sys {
};
// Set direction based on move direction when on the ground
let ori_dir = if character.action.is_wield() || character.action.is_attack() {
let ori_dir = if character.action.is_wield()
|| character.action.is_attack()
|| character.action.is_block()
{
Vec2::from(controller.look_dir).normalized()
} else {
Vec2::from(vel.0)