From 14c346eb84499e50671d396307d4d58cf9555b99 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Wed, 15 Feb 2023 15:10:33 -0800 Subject: [PATCH] adjust tunnel fix for flatland --- src/action/systems.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/action/systems.rs b/src/action/systems.rs index d54a967..bff68fa 100644 --- a/src/action/systems.rs +++ b/src/action/systems.rs @@ -126,7 +126,8 @@ pub(super) fn surface_fix( ) { // assume the body is not below the planet surface for (entity, xform, mut cgroups) in wheel_query.iter_mut() { - let ray_dir = xform.translation.normalize(); + //let ray_dir = xform.translation.normalize(); + let ray_dir = Vec3::Y; if let Some(hit) = context.cast_ray_and_get_normal( xform.translation, ray_dir,