diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-04-15 18:27:29 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-04-15 18:27:29 +0300 |
commit | cf631e23e1d0e29edac2e13446bdd42235c111fc (patch) | |
tree | 141f85599c7bd47b3fcb0a3088a5ce117d6e18fd /src/player.h | |
parent | 02ec17653ee5399eac67871dfd5fb193bb9dce2f (diff) |
collision and depth shading
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index c627bcf..3e957e9 100644 --- a/src/player.h +++ b/src/player.h @@ -8,8 +8,8 @@ typedef struct player { struct xyz pos, velocity; // vectors for the player float angle, anglesin, anglecos; // angle, and its sine and cosine size_t sector; // the sector that the player is in - float stand_height, duck_height, head_margin; // eyeheights; minimum margin between current height and celling - bool ground, falling, moving, ducking; + float stand_height, duck_height, head_margin, knee_height; // eyeheights; minimum margin between current height and celling; maximum height objects the player can walk over + bool moving, ducking; } player_t; void player_default(player_t *player); |