Tune collision feel and align M2 movement/camera behavior

This commit is contained in:
Kelsi 2026-02-03 15:17:54 -08:00
parent b372c499a4
commit d03ff5ee4c
4 changed files with 308 additions and 96 deletions

View file

@ -7,6 +7,7 @@
#include <unordered_map>
#include <vector>
#include <string>
#include <optional>
namespace wowee {
@ -144,6 +145,14 @@ public:
bool checkCollision(const glm::vec3& from, const glm::vec3& to,
glm::vec3& adjustedPos, float playerRadius = 0.5f) const;
/**
* Approximate top surface height for standing/jumping on doodads.
* @param glX World X
* @param glY World Y
* @param glZ Query/reference Z (used to ignore unreachable tops)
*/
std::optional<float> getFloorHeight(float glX, float glY, float glZ) const;
/**
* Raycast against M2 bounding boxes for camera collision
* @param origin Ray origin (e.g., character head position)