mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
move Chunks from Level to Player
This commit is contained in:
parent
b7664b4188
commit
1c18c02092
40 changed files with 450 additions and 220 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
|
||||
class Block;
|
||||
class Chunks;
|
||||
class GlobalChunks;
|
||||
struct Sensor;
|
||||
|
||||
class PhysicsSolver {
|
||||
|
|
@ -18,14 +18,14 @@ class PhysicsSolver {
|
|||
public:
|
||||
PhysicsSolver(glm::vec3 gravity);
|
||||
void step(
|
||||
Chunks* chunks,
|
||||
const GlobalChunks& chunks,
|
||||
Hitbox* hitbox,
|
||||
float delta,
|
||||
uint substeps,
|
||||
entityid_t entity
|
||||
);
|
||||
void colisionCalc(
|
||||
Chunks* chunks,
|
||||
const GlobalChunks& chunks,
|
||||
Hitbox* hitbox,
|
||||
glm::vec3& vel,
|
||||
glm::vec3& pos,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue