This commit is contained in:
Lwmte 2021-10-08 01:16:49 +03:00
parent 72637ef53f
commit 97e1b218ea
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ struct COLL_INFO;
#define LARA_SLOW_TURN ANGLE(4.0f)
#define LARA_MED_TURN ANGLE(6.0f)
#define LARA_FAST_TURN ANGLE(8.0f)
#define LARA_VAULT_THRESHOLD ANGLE(30.0f)
#define LARA_GRAB_THRESHOLD ANGLE(30.0f)
constexpr auto LARA_HEIGHT = CLICK(3) - 1; // The size of Lara (from the floor to the top of the head)
constexpr auto LARA_HEIGHT_CRAWL = 400; // Size of Lara in crawl state

View file

@ -60,7 +60,7 @@ bool TestValidLedge(ITEM_INFO* item, COLL_INFO* coll)
if (abs(left - right) >= slopeDelta)
return false;
if (abs((short)(coll->NearestLedgeAngle - coll->Setup.ForwardAngle)) > LARA_VAULT_THRESHOLD)
if (abs((short)(coll->NearestLedgeAngle - coll->Setup.ForwardAngle)) > LARA_GRAB_THRESHOLD)
return false;
auto headroom = (coll->Front.Floor + coll->Setup.Height) - coll->Middle.Ceiling;