And also made the camera react to gravity, not fall through the floor

This commit is contained in:
2018-02-08 00:52:01 -08:00
parent c698711fdf
commit 176d9f7a54
5 changed files with 54 additions and 38 deletions

View File

@@ -41,10 +41,10 @@ class CLCaster;
class Application {
public:
static const int WINDOW_X = 1366;
static const int WINDOW_Y = 768;
// static const int WINDOW_X = 1920;
// static const int WINDOW_Y = 1080;
// static const int WINDOW_X = 1366;
// static const int WINDOW_Y = 768;
static const int WINDOW_X = 1920;
static const int WINDOW_Y = 1080;
static const int MAP_X;
static const int MAP_Y;
static const int MAP_Z;

View File

@@ -47,8 +47,8 @@ public:
private:
float friction_coefficient = 0.1f;
float default_impulse = 0.3f;
float friction_coefficient = 0.001f;
float default_impulse = 0.1f;
// 3D vector
sf::Vector3f movement;