mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
refactor: PlayerController
This commit is contained in:
parent
b3ae8484a2
commit
4e696520b6
13 changed files with 207 additions and 186 deletions
|
|
@ -76,12 +76,10 @@ class PlayerController {
|
|||
float stepsTimer = 0.0f;
|
||||
void onFootstep();
|
||||
void updateFootsteps(float delta);
|
||||
public:
|
||||
static glm::ivec3 selectedBlockNormal;
|
||||
static glm::vec3 selectedPointPosition;
|
||||
static int selectedBlockId;
|
||||
static int selectedBlockRotation;
|
||||
void processRightClick(Block* def, Block* target);
|
||||
|
||||
voxel* updateSelection(float maxDistance);
|
||||
public:
|
||||
PlayerController(
|
||||
Level* level,
|
||||
const EngineSettings& settings,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue