From ff9aabafd15008b2514aad23696888d1147afa64 Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 10 Oct 2021 14:48:00 +0200 Subject: [PATCH] Change max walkable slope angle to 46 degrees This is the value used by vanilla Morrowind engine. At this angle player character starts sliding down the slope. This fixes navigation and movement issue in Mournhold, Godsreach. --- apps/openmw/mwphysics/constants.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwphysics/constants.hpp b/apps/openmw/mwphysics/constants.hpp index eaeb308d58..2d7cd53d38 100644 --- a/apps/openmw/mwphysics/constants.hpp +++ b/apps/openmw/mwphysics/constants.hpp @@ -12,7 +12,7 @@ namespace MWPhysics static constexpr bool sDoExtraStairHacks = true; static constexpr float sGroundOffset = 1.0f; - static constexpr float sMaxSlope = 49.0f; + static constexpr float sMaxSlope = 46.0f; // Arbitrary number. To prevent infinite loops. They shouldn't happen but it's good to be prepared. static constexpr int sMaxIterations = 8;