X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=common.h;h=9eda6f67ae0e59dfcf76c8fd39b0f26d46d7d8ae;hb=6e29d444f89478d5965fc652373272e5d70e84e4;hp=74200096cc329ec697a63285c845994397e378be;hpb=791f807111a1f740f745c67db642aa7a8bee56e8;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/common.h b/common.h index 7420009..9eda6f6 100644 --- a/common.h +++ b/common.h @@ -47,7 +47,7 @@ VG_STATIC float k_steer_ground = 2.5f, k_steer_air = 3.6f, - k_jump_charge_speed = (1.0f/1.0f), + k_jump_charge_speed = (1.0f/0.4f), k_jump_force = 5.0f, k_pitch_limit = 1.5f, @@ -77,7 +77,7 @@ VG_STATIC float k_board_interia = 8.0f, k_grind_decayxy = 30.0f, - k_grind_axel_min_vel = 3.0f, + k_grind_axel_min_vel = 1.0f, k_grind_axel_max_angle = 0.95f, /* cosine(|a|) */ k_grind_axel_max_vangle = 0.4f, k_grind_max_friction = 3.0f, @@ -86,7 +86,9 @@ VG_STATIC float k_board_length = 0.45f, k_board_width = 0.13f, k_board_end_radius = 0.1f, - k_board_radius = 0.14f; /* 0.07 */ + k_board_radius = 0.14f, /* 0.07 */ + + k_grind_balance = -40.0f; VG_STATIC float k_walkspeed = 10.0f, @@ -115,7 +117,8 @@ VG_STATIC int k_ragdoll_div = 1, k_ragdoll_debug_constraints = 0; VG_STATIC int k_debug_light_indices = 0, - k_debug_light_complexity = 0; + k_debug_light_complexity = 0, + k_light_preview = 0; VG_STATIC int freecam = 0; VG_STATIC int walk_grid_iterations = 1; @@ -140,6 +143,7 @@ VG_STATIC void common_var_temp(void) VG_VAR_F32( k_grind_axel_min_vel ); VG_VAR_F32( k_grind_axel_max_angle ); VG_VAR_F32( k_grind_max_friction ); + VG_VAR_F32( k_grind_balance ); VG_VAR_F32( k_walkspeed ); VG_VAR_F32( k_stopspeed ); @@ -152,13 +156,13 @@ VG_STATIC void common_var_temp(void) VG_VAR_I32( cl_thirdperson ); VG_VAR_F32_PERSISTENT( fc_speed ); - /* TODO: NOT PERSISTENT */ VG_VAR_F32( k_ragdoll_limit_scale ); VG_VAR_I32( k_ragdoll_div ); VG_VAR_I32( k_ragdoll_debug_collider ); VG_VAR_I32( k_ragdoll_debug_constraints ); VG_VAR_I32( k_debug_light_indices ); VG_VAR_I32( k_debug_light_complexity ); + VG_VAR_I32( k_light_preview ); VG_VAR_F32( k_friction_lat );