From 96b84dcbaa0e8d1e77d14643c1bd3d27126318eb Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Thu, 25 May 2023 15:18:42 +0100 Subject: [PATCH] Transform surface normal to account for voxel entity orientation --- common/systems/src/phys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/systems/src/phys.rs b/common/systems/src/phys.rs index 4d73748e27..6a53083b25 100644 --- a/common/systems/src/phys.rs +++ b/common/systems/src/phys.rs @@ -1209,7 +1209,7 @@ impl<'a> PhysicsData<'a> { entity, Vel(previous_cache_other.ori * vel.0 + vel_other), - surface_normal, + previous_cache_other.ori * surface_normal, )); }, read,