mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Tune collision feel and align M2 movement/camera behavior
This commit is contained in:
parent
b372c499a4
commit
d03ff5ee4c
4 changed files with 308 additions and 96 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue