MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / CanCrawlspaceDive

Function CanCrawlspaceDive

TombEngine/Game/Lara/PlayerContext.cpp:1000–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998 }
999
1000 bool CanCrawlspaceDive(const ItemInfo& item, const CollisionInfo& coll)
1001 {
1002 auto pointColl = GetPointCollision(item, coll.Setup.ForwardAngle, coll.Setup.Radius, -coll.Setup.Height);
1003 return (abs(pointColl.GetCeilingHeight() - pointColl.GetFloorHeight()) < LARA_HEIGHT || IsInLowSpace(item, coll));
1004 }
1005
1006 bool CanPerformLedgeJump(const ItemInfo& item, const CollisionInfo& coll)
1007 {

Callers 1

lara_as_swan_diveFunction · 0.85

Calls 4

GetPointCollisionFunction · 0.85
IsInLowSpaceFunction · 0.85
GetCeilingHeightMethod · 0.45
GetFloorHeightMethod · 0.45

Tested by

no test coverage detected