From f7668a11cf4a5bd05708316f68f91b3184abc100 Mon Sep 17 00:00:00 2001 From: hgn Date: Tue, 28 Nov 2023 07:33:03 +0000 Subject: [PATCH] adjust grind dir epsilon --- player_skate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player_skate.c b/player_skate.c index 215c1c7..1ad7231 100644 --- a/player_skate.c +++ b/player_skate.c @@ -225,7 +225,7 @@ too_many_samples: v3_copy( sj->normal3, n1 ); v3_cross( n0, n1, dir ); - if( v3_length2( dir ) <= 0.001f ) + if( v3_length2( dir ) <= 0.000001f ) continue; v3_normalize( dir ); @@ -2572,7 +2572,7 @@ begin_collision:; if( (state->activity_prev < k_skate_activity_grind_any) && (state->activity >= k_skate_activity_grind_any) ){ - state->velocity_limit = v3_length( localplayer.rb.v ); + state->velocity_limit = v3_length( localplayer.rb.v )*1.0f; state->grind_y_start = localplayer.rb.co[1]; } -- 2.25.1