mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add entity.test(...) function
This commit is contained in:
parent
4b3ac95d71
commit
eacbc1b9d0
5 changed files with 33 additions and 3 deletions
|
|
@ -247,9 +247,6 @@ void PlayerController::update(float delta, bool input, bool pause) {
|
|||
camControl.refresh();
|
||||
if (input) {
|
||||
updateInteraction();
|
||||
if (Events::jactive("player.drop")) {
|
||||
level->entities->drop(player->camera->position, player->camera->front*8.0f+glm::vec3(0, 2, 0)+player->hitbox->velocity);
|
||||
}
|
||||
} else {
|
||||
player->selection.vox.id = BLOCK_VOID;
|
||||
player->selection.vox.state.rotation = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue