2 * Copyright (C) 2021-2023 Mt.ZERO Software, Harry Godden - All Rights Reserved
8 #define VG_TIMESTEP_FIXED (1.0/60.0)
11 //#define VG_STATIC static
13 #define VG_FRAMEBUFFER_RESIZE 1
15 #include "submodules/anyascii/impl/c/anyascii.c"
17 #define RESET_MAX_TIME 45.0
18 VG_STATIC v3f TEMP_BOARD_0
, TEMP_BOARD_1
;
20 enum menu_controller_type
22 k_menu_controller_type_keyboard
,
23 k_menu_controller_type_xbox
,
24 k_menu_controller_type_playstation
,
25 k_menu_controller_type_steam
,
26 k_menu_controller_type_steam_deck
29 VG_STATIC
enum menu_controller_type menu_display_controller
;
31 typedef struct ray_hit ray_hit
;
40 k_friction_lat
= 12.0f
,
41 k_friction_resistance
= 0.01f
,
43 k_max_push_speed
= 16.0f
,
45 k_push_cycle_rate
= 8.0f
,
47 k_steer_ground
= 2.5f
,
50 k_jump_charge_speed
= (1.0f
/1.0f
),
58 k_cog_mass_ratio
= 0.9f
,
60 k_mmthrow_scale
= 6.0f
,
61 k_mmcollect_lat
= 2.0f
,
62 k_mmcollect_vert
= 0.0f
,
64 k_spring_angular
= 1.0f
,
66 k_spring_force
= 300.0f
,
67 k_spring_dampener
= 5.0f
,
69 k_grind_spring
= 50.0f
,
70 k_grind_aligment
= 10.0f
,
71 k_grind_dampener
= 5.0f
,
73 k_surface_spring
= 100.0f
,
74 k_surface_dampener
= 40.0f
,
75 k_manul_spring
= 200.0f
,
76 k_manul_dampener
= 30.0f
,
77 k_board_interia
= 8.0f
,
79 k_grind_decayxy
= 30.0f
,
80 k_grind_axel_min_vel
= 3.0f
,
81 k_grind_axel_max_angle
= 0.95f
, /* cosine(|a|) */
82 k_grind_axel_max_vangle
= 0.4f
,
83 k_grind_max_friction
= 3.0f
,
84 k_grind_max_edge_angle
= 0.97f
,
86 k_board_length
= 0.45f
,
87 k_board_width
= 0.13f
,
88 k_board_end_radius
= 0.1f
,
89 k_board_radius
= 0.14f
; /* 0.07 */
96 k_walk_air_accel
= 7.0f
,
97 k_walk_friction
= 10.0f
,
98 k_walk_step_height
= 0.2f
;
102 k_cam_spring
= 20.0f
,
106 k_day_length
= 30.0f
; /* minutes */
108 VG_STATIC
float k_ragdoll_floatyiness
= 20.0f
,
109 k_ragdoll_floatydrag
= 1.0f
,
110 k_ragdoll_limit_scale
= 1.0f
;
112 VG_STATIC
int k_ragdoll_div
= 1,
114 k_ragdoll_debug_collider
= 1,
115 k_ragdoll_debug_constraints
= 0;
117 VG_STATIC
int k_debug_light_index
= 1;
119 VG_STATIC
int freecam
= 0;
120 VG_STATIC
int walk_grid_iterations
= 1;
121 VG_STATIC
float fc_speed
= 10.0f
;
122 VG_STATIC
int cl_thirdperson
= 0;
124 VG_STATIC
void common_var_temp(void)
126 VG_VAR_F32( k_day_length
);
128 VG_VAR_F32( k_cam_punch
);
129 VG_VAR_F32( k_cam_damp
);
130 VG_VAR_F32( k_cam_spring
);
132 VG_VAR_F32( k_grind_dampener
);
133 VG_VAR_F32( k_grind_spring
);
134 VG_VAR_F32( k_grind_aligment
);
135 VG_VAR_F32( k_surface_spring
);
136 VG_VAR_F32( k_surface_dampener
);
137 VG_VAR_F32( k_board_interia
);
138 VG_VAR_F32( k_grind_decayxy
);
139 VG_VAR_F32( k_grind_axel_min_vel
);
140 VG_VAR_F32( k_grind_axel_max_angle
);
141 VG_VAR_F32( k_grind_max_friction
);
143 VG_VAR_F32( k_walkspeed
);
144 VG_VAR_F32( k_stopspeed
);
145 VG_VAR_F32( k_airspeed
);
146 VG_VAR_F32( k_walk_friction
);
147 VG_VAR_F32( k_walk_air_accel
);
148 VG_VAR_F32( k_walk_accel
);
150 VG_VAR_I32( freecam
);
151 VG_VAR_I32( cl_thirdperson
);
152 VG_VAR_F32_PERSISTENT( fc_speed
);
154 /* TODO: NOT PERSISTENT */
155 VG_VAR_F32( k_ragdoll_limit_scale
);
156 VG_VAR_I32( k_ragdoll_div
);
157 VG_VAR_I32( k_ragdoll_debug_collider
);
158 VG_VAR_I32( k_ragdoll_debug_constraints
);
160 VG_VAR_F32( k_friction_lat
);
162 VG_VAR_F32( k_cog_spring
);
163 VG_VAR_F32( k_cog_damp
);
164 VG_VAR_F32( k_cog_mass_ratio
);
166 VG_VAR_F32( k_spring_force
);
167 VG_VAR_F32( k_spring_dampener
);
168 VG_VAR_F32( k_spring_angular
);
170 VG_VAR_F32( k_mmthrow_scale
);
171 VG_VAR_F32( k_mmcollect_lat
);
172 VG_VAR_F32( k_mmcollect_vert
);
173 VG_VAR_F32( k_mmdecay
);
176 #endif /* COMMON_H */