1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

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.
This commit is contained in:
elsid 2021-10-10 14:48:00 +02:00
parent b61140b8ba
commit ff9aabafd1
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -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;