All changes made for 10th part of tutorial

voxel_engine.cpp - changed structure, added character controls, physics
almost all files are modified (including shaders)
+ new source directory - physics
This commit is contained in:
MihailRis
2021-08-04 01:45:04 +03:00
committed by GitHub
parent e1cdcf01e9
commit 1a00a11917
22 changed files with 587 additions and 149 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef PHYSICS_HITBOX_H_
#define PHYSICS_HITBOX_H_
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <glm/gtc/matrix_transform.hpp>
using namespace glm;
class Hitbox {
public:
vec3 position;
vec3 halfsize;
vec3 velocity;
bool grounded = false;
Hitbox(vec3 position, vec3 halfsize);
};
#endif /* PHYSICS_HITBOX_H_ */