From 7feb4942e3d08fef2a8173d17e7c428c2dfb7237 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 13 Mar 2021 10:52:45 +0000 Subject: [PATCH] Fixed incorrect wall climb direction on airships --- common/sys/src/phys.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/sys/src/phys.rs b/common/sys/src/phys.rs index e2ff048790..80efbf3a74 100644 --- a/common/sys/src/phys.rs +++ b/common/sys/src/phys.rs @@ -672,7 +672,9 @@ impl<'a> PhysicsData<'a> { physics_state.on_ground |= physics_state_delta.on_ground; physics_state.on_ceiling |= physics_state_delta.on_ceiling; physics_state.on_wall = - physics_state.on_wall.or(physics_state_delta.on_wall); + physics_state.on_wall.or(physics_state_delta + .on_wall + .map(|dir| ori_to.mul_direction(dir))); physics_state .touch_entities .append(&mut physics_state_delta.touch_entities);