feat: third-person camera now checks solid entities

This commit is contained in:
MihailRis 2026-03-14 15:47:26 +03:00
parent 15bbf55e29
commit fc57e98a96
3 changed files with 29 additions and 9 deletions

View file

@ -88,12 +88,14 @@ public:
/// @param dir Ray direction normalized vector
/// @param maxDistance Max ray length
/// @param ignore Ignored entity ID
/// @param solidOnly If true, only entities with solid hitboxes will be checked
/// @return An optional structure containing entity, normal and distance
std::optional<RaycastResult> rayCast(
glm::vec3 start,
glm::vec3 dir,
float maxDistance,
entityid_t ignore = -1
entityid_t ignore = -1,
bool solidOnly = false
);
void loadEntities(dv::value map);