mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
add core:mob component & move player movement to scripting
This commit is contained in:
parent
67ef84d6b0
commit
dfb83f6835
10 changed files with 132 additions and 100 deletions
|
|
@ -59,9 +59,6 @@ class Player : public Serializable {
|
|||
entityid_t eid = ENTITY_AUTO;
|
||||
entityid_t selectedEid = 0;
|
||||
|
||||
void doMove(const glm::vec3& dir, float speed, float delta);
|
||||
void doJump();
|
||||
|
||||
glm::vec3 rotation {};
|
||||
public:
|
||||
util::VecInterpolation<3, float, true> rotationInterpolation {true};
|
||||
|
|
@ -85,7 +82,6 @@ public:
|
|||
|
||||
void teleport(glm::vec3 position);
|
||||
void updateEntity();
|
||||
void updateInput(PlayerInput& input, float delta);
|
||||
void updateSelectedEntity();
|
||||
void postUpdate();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue