diff options
| author | aura <nw@moneybot.cc> | 2026-02-25 14:45:28 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-25 14:45:28 +0100 |
| commit | b384930de5044934207d1b2ceb4fa55705094f8b (patch) | |
| tree | 7937d3382e83ead2db1851b4a02b8378d02ac150 /src/game/physics/movement.h | |
| parent | cabe4471c309b2bba3be78b8346c9007485b1d57 (diff) | |
movement stuff + fix map zoom when dragging
Diffstat (limited to 'src/game/physics/movement.h')
| -rw-r--r-- | src/game/physics/movement.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game/physics/movement.h b/src/game/physics/movement.h index 7c78d79..47aa97d 100644 --- a/src/game/physics/movement.h +++ b/src/game/physics/movement.h @@ -1,11 +1,32 @@ #pragma once +#include "../../util/aabb.h" +#include "../world/bsp.h" #include "../player.h" +#include "../vars.h" + +extern CVAR* mv_gravity; +extern CVAR* mv_friction; +extern CVAR* mv_accelerate; +extern CVAR* mv_airaccelerate; +extern CVAR* mv_wallboost; +extern CVAR* mv_maxspeed; + struct GAME_MOVEMENT { PLAYER* pl; PLAYER_INPUT* input; GAME_DATA* game; + + VEC3 velocity; + VEC3 pos; + VEC3 angle; + F32 maxspeed; + F32 walkspeed; + AABB aabb; + BSP* bsp; + + F32 out_step; }; extern void gmove_init( GAME_DATA* game ); |
