mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
02dd796e2e
commit
fc003a2aba
2 changed files with 11 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue