| 572 | } |
| 573 | |
| 574 | bool CanPerformMonkeySwingStep(const ItemInfo& item, const CollisionInfo& coll) |
| 575 | { |
| 576 | constexpr auto LOWER_CEIL_BOUND = MONKEY_STEPUP_HEIGHT; |
| 577 | constexpr auto UPPER_CEIL_BOUND = -MONKEY_STEPUP_HEIGHT; |
| 578 | |
| 579 | // Get point collision. |
| 580 | auto pointColl = GetPointCollision(item); |
| 581 | int relCeilHeight = pointColl.GetCeilingHeight() - (item.Pose.Position.y - LARA_HEIGHT_MONKEY); |
| 582 | |
| 583 | // Assess point collision. |
| 584 | if (relCeilHeight <= LOWER_CEIL_BOUND && // Ceiling height is above lower ceiling bound. |
| 585 | relCeilHeight >= UPPER_CEIL_BOUND) // Ceiling height is below upper ceiling bound. |
| 586 | { |
| 587 | return true; |
| 588 | } |
| 589 | |
| 590 | return false; |
| 591 | } |
| 592 | |
| 593 | bool CanFallFromMonkeySwing(const ItemInfo& item, const CollisionInfo& coll) |
| 594 | { |
no test coverage detected