mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Use look_dir when blocking
This commit is contained in:
parent
3258fa3a3c
commit
01410569a4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user