mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
Reduce wall pushback and WMO camera distance
This commit is contained in:
parent
b2f2ad76af
commit
85e73a2f24
2 changed files with 2 additions and 2 deletions
|
|
@ -1639,7 +1639,7 @@ bool WMORenderer::checkWallCollision(const glm::vec3& from, const glm::vec3& to,
|
|||
float horizDist = glm::length(glm::vec2(delta.x, delta.y));
|
||||
if (horizDist <= PLAYER_RADIUS) {
|
||||
wallsHit++;
|
||||
float pushDist = PLAYER_RADIUS - horizDist + 0.04f;
|
||||
float pushDist = PLAYER_RADIUS - horizDist + 0.02f;
|
||||
glm::vec2 pushDir2;
|
||||
if (horizDist > 1e-4f) {
|
||||
pushDir2 = glm::normalize(glm::vec2(delta.x, delta.y));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue