#define SKATE_CCD
+typedef struct jump_info jump_info;
+
struct player_skate
{
struct
v3f trick_vel, /* measured in units of TAU/s */
trick_euler; /* measured in units of TAU */
float trick_time;
-
-
float gravity_bias;
-#if 0
- m3x3f velocity_bias,
- velocity_bias_pstep;
- v3f apex;
-#endif
v3f up_dir;
v3f head_position;
blend_airdir,
blend_weight;
+ float slap;
+
/* vectors representing the direction of the axels in localspace */
v3f truckv0[2];
v2f wobble;
float substep,
substep_delta;
- struct land_prediction
+ struct jump_info
{
v3f log[50];
v3f n;
enum prediction_type
{
k_prediction_none,
+ k_prediction_unset,
k_prediction_land,
k_prediction_grind
}
u32 colour;
}
- predictions[32];
- u32 prediction_count;
+ possible_jumps[36];
+ u32 possible_jump_count;
+
float land_dist;
v3f land_normal;