add entities raycast

This commit is contained in:
MihailRis
2024-07-14 10:50:06 +03:00
parent 638a0d9850
commit c17f3fec54
8 changed files with 90 additions and 15 deletions
+1
View File
@@ -60,6 +60,7 @@ Hitbox* Player::getHitbox() {
return nullptr;
}
#include "EntityDef.hpp"
void Player::updateInput(PlayerInput& input, float delta) {
auto hitbox = getHitbox();
if (hitbox == nullptr) {