From 756648c2fbde10ac071aacf2d4b4f09629ca9173 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 9 Nov 2023 18:54:03 -0800 Subject: [PATCH] probably need a better fix for this --- src/physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics.rs b/src/physics.rs index 1a0a25e..d81638c 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -113,7 +113,7 @@ impl WalkEnum{ } impl WalkState{ fn ground(body:&Body,style:&StyleModifiers,gravity:Planar64Vec3,velocity:Planar64Vec3,contact:ContactCollision,normal:&Planar64Vec3)->(Self,Planar64Vec3){ - let (walk_enum,a)=WalkEnum::with_target_velocity(body,style,velocity,&Planar64Vec3::Y,style.walk_speed,normal.dot(gravity)); + let (walk_enum,a)=WalkEnum::with_target_velocity(body,style,velocity,&Planar64Vec3::Y,style.walk_speed,-normal.dot(gravity)); (Self{ state:walk_enum, contact,