mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
PhysicsSolver minor refactor, changed crouch speed
This commit is contained in:
parent
5accfe18c9
commit
de134dc2e5
3 changed files with 73 additions and 67 deletions
|
|
@ -2,8 +2,7 @@
|
|||
#define PHYSICS_PHYSICSSOLVER_H_
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/ext.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
#include "../typedefs.h"
|
||||
|
||||
class Hitbox;
|
||||
class Chunks;
|
||||
|
|
@ -15,11 +14,11 @@ public:
|
|||
void step(Chunks* chunks,
|
||||
Hitbox* hitbox,
|
||||
float delta,
|
||||
unsigned substeps,
|
||||
uint substeps,
|
||||
bool shifting,
|
||||
float gravityScale,
|
||||
bool collisions);
|
||||
void colisionCalc(Chunks* chunks, Hitbox* hitbox, glm::vec3* vel, glm::vec3* pos, glm::vec3 half);
|
||||
void colisionCalc(Chunks* chunks, Hitbox* hitbox, glm::vec3& vel, glm::vec3& pos, const glm::vec3 half);
|
||||
bool isBlockInside(int x, int y, int z, Hitbox* hitbox);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue