#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_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;
{
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 );
+ }
}
}