Soften WMO wall pushback and fix fountain climbing

Cap WMO swept wall collision pushback to 0.15 units (was 0.55) so walls
stop the player without violent shoves. Fix M2 stepped fountain lateral
push using effectiveTop instead of rawMax.z so the near-top check matches
the stepped profile height at the player's radial position.
This commit is contained in:
Kelsi 2026-02-08 18:53:56 -08:00
parent 02dd796e2e
commit fc003a2aba
2 changed files with 11 additions and 3 deletions

View file

@ -2544,7 +2544,7 @@ bool M2Renderer::checkCollision(const glm::vec3& from, const glm::vec3& to,
if (allowEscapeRelax) {
continue;
}
if (stepableLowObject && localFrom.z >= rawMax.z - 0.35f) {
if (stepableLowObject && localFrom.z >= effectiveTop - 0.35f) {
// Already on/near top surface: don't apply lateral push that ejects
// the player from the object (carpets, platforms, etc).
continue;