adjust tunnel fix for flatland

This commit is contained in:
Joe Ardent 2023-02-15 15:10:33 -08:00
parent fa59a81f05
commit 14c346eb84

View file

@ -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,