mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Tune skin for collision "sticky" feel on walls
This commit is contained in:
parent
a503583b6b
commit
22c4d033cf
1 changed files with 1 additions and 1 deletions
|
|
@ -2058,7 +2058,7 @@ bool WMORenderer::checkWallCollision(const glm::vec3& from, const glm::vec3& to,
|
|||
float absNz = std::abs(normal.z);
|
||||
if (absNz >= 0.45f) continue;
|
||||
|
||||
const float SKIN = 0.007f; // small separation so we don’t re-collide immediately
|
||||
const float SKIN = 0.005f; // small separation so we don’t re-collide immediately
|
||||
const float MAX_PUSH = 0.08f; // cap per triangle contact (tune 0.10–0.25)
|
||||
float penetration = (PLAYER_RADIUS - horizDist);
|
||||
float pushDist = glm::clamp(penetration + SKIN, 0.0f, MAX_PUSH);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue