projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed recursive build script
[carveJwlIkooP6JGAAIwe30JlM.git]
/
player.h
diff --git
a/player.h
b/player.h
index 2c6ee19ef51b94e21e9df556a6ce0bb6a51f2d4c..25054e03f38db5040af9c9437364e99d9a4adc71 100644
(file)
--- a/
player.h
+++ b/
player.h
@@
-12,8
+12,8
@@
#include "bvh.h"
static float
#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_board_radius = 0.3f,
k_board_length = 0.45f,
k_board_allowance = 0.04f,
@@
-31,7
+31,7
@@
static float
k_jump_force = 5.0f,
k_pitch_limit = 1.5f,
k_look_speed = 2.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;
k_walk_friction = 8.0f;
static int freecam = 0;
@@
-232,7
+232,7
@@
static void player_update_pre(void)
{
struct player_phys *phys = &player.phys;
{
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();
{
player.is_dead = 0;
player_restore_frame();
@@
-252,6
+252,11
@@
static void player_update_pre(void)
if( vg_get_button_down( "switchmode" ) )
{
phys->on_board ^= 0x1;
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 );
+ }
}
}
}
}