add core:mob component & move player movement to scripting

This commit is contained in:
MihailRis
2025-08-10 22:55:34 +03:00
parent 67ef84d6b0
commit dfb83f6835
10 changed files with 132 additions and 100 deletions
-5
View File
@@ -271,7 +271,6 @@ void PlayerController::update(float delta, const Input* inputEvents) {
} else {
resetKeyboard();
}
updatePlayer(delta);
}
void PlayerController::postUpdate(
@@ -313,10 +312,6 @@ void PlayerController::resetKeyboard() {
input = {};
}
void PlayerController::updatePlayer(float delta) {
player.updateInput(input, delta);
}
static int determine_rotation(
const Block* def, const glm::ivec3& norm, const glm::vec3& camDir
) {