adjust tunnel fix for flatland
This commit is contained in:
parent
fa59a81f05
commit
14c346eb84
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ pub(super) fn surface_fix(
|
||||||
) {
|
) {
|
||||||
// assume the body is not below the planet surface
|
// assume the body is not below the planet surface
|
||||||
for (entity, xform, mut cgroups) in wheel_query.iter_mut() {
|
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(
|
if let Some(hit) = context.cast_ray_and_get_normal(
|
||||||
xform.translation,
|
xform.translation,
|
||||||
ray_dir,
|
ray_dir,
|
||||||
|
|
Loading…
Reference in a new issue