Fix first person backwards roll.

This commit is contained in:
Sam 2021-07-04 21:54:38 -05:00
parent 5da8c70f48
commit d2cb0c76a7

View File

@ -50,6 +50,9 @@ impl CharacterBehavior for Data {
fn behavior(&self, data: &JoinData) -> StateUpdate {
let mut update = StateUpdate::from(data);
// You should not be able to strafe while rolling
update.should_strafe = false;
// Smooth orientation
handle_orientation(data, &mut update, 2.5);