mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Retain pitch on no input
This commit is contained in:
parent
a6dc8853da
commit
053fb9662f
@ -73,8 +73,7 @@ impl CharacterBehavior for Data {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.or_else(|| self.ori.look_dir().to_horizontal().map(Ori::from))
|
.unwrap_or_else(|| self.ori.uprighted());
|
||||||
.unwrap_or_default();
|
|
||||||
|
|
||||||
let rate = {
|
let rate = {
|
||||||
let angle = self.ori.look_dir().angle_between(*data.inputs.look_dir);
|
let angle = self.ori.look_dir().angle_between(*data.inputs.look_dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user