diff --git a/include/physics.h b/include/physics.h index a85f9a8..e50a224 100644 --- a/include/physics.h +++ b/include/physics.h @@ -5,12 +5,12 @@ #include // Tunable constants -#define PHYS_GRAVITY -0.1f -#define PHYS_TERMINAL_VELOCITY -10.0f +#define PHYS_GRAVITY -0.01f // ok +#define PHYS_TERMINAL_VELOCITY -20.0f #define PHYS_GROUND_FRICTION 0.96f -#define PHYS_AIR_FRICTION 0.985f -#define PHYS_MAX_AIR_SPEED 4.0f -#define PHYS_SLOPE_SLIDE_FACTOR 0.05f +#define PHYS_AIR_FRICTION 3.985f +#define PHYS_MAX_AIR_SPEED 1.0f +#define PHYS_SLOPE_SLIDE_FACTOR 0.03f void physics_apply(Entity *self, Uint8 onGround, Uint8 ignoreGravity); void physics_apply_slope(Entity *self, GFC_Vector3D groundNormal, Uint8 onGround); diff --git a/src/player.c b/src/player.c index 4f08eb3..3b2e342 100644 --- a/src/player.c +++ b/src/player.c @@ -4,14 +4,14 @@ #include "world.h" // Constants -#define PLAYER_RADIUS 1.0f +#define PLAYER_RADIUS 2.0f #define DOWN_RAY_ABOVE 1.0f #define DOWN_RAY_BELOW 2.0f #define PENETRATION_TOLERANCE 0.05f #define REST_TOLERANCE 0.02f -#define JUMP_STRENGTH 2.0f -#define MOVE_SPEED 0.5f +#define JUMP_STRENGTH 0.5f +#define MOVE_SPEED 0.0001f static Entity* thePlayer;