#include "bvh.h"
static float
- k_walkspeed = 7.0f, /* no longer used */
- k_runspeed = 14.0f,
+ k_walkspeed = 20.0f, /* no longer used */
+ k_runspeed = 20.0f,
k_board_radius = 0.3f,
k_board_length = 0.45f,
k_board_allowance = 0.04f,
k_steer_air_lerp = 0.3f,
k_pump_force = 0.0f,
k_downforce = 5.0f,
+ k_walk_downforce = 8.0f,
k_jump_charge_speed = (1.0f/1.0f),
k_jump_force = 5.0f,
k_pitch_limit = 1.5f,
k_look_speed = 2.0f,
- k_walk_accel = 5.0f,
+ k_walk_accel = 150.0f,
k_walk_friction = 8.0f;
static int freecam = 0;
*anim_push, *anim_push_reverse,
*anim_ollie, *anim_ollie_reverse,
*anim_grabs, *anim_stop,
- *anim_walk, *anim_run, *anim_idle;
+ *anim_walk, *anim_run, *anim_idle,
+ *anim_jump;
u32 id_hip,
id_ik_hand_l,
{
struct player_phys *phys = &player.phys;
- if( vg_get_axis("grabl")>0.0f)
+ if( vg_get_button_down( "reset" ) )
{
player.is_dead = 0;
player_restore_frame();
if( vg_get_button_down( "switchmode" ) )
{
phys->on_board ^= 0x1;
+
+ if( phys->on_board )
+ {
+ v3_muladds( phys->rb.v, phys->rb.forward, 0.2f, phys->rb.v );
+ }
}
}