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

Function GetBridgeBorder

TombEngine/Game/collision/floordata.cpp:822–826  ·  view source on GitHub ↗

Gets bridge min or max height regardless of actual X/Z world position.

Source from the content-addressed store, hash-verified

820
821 // Gets bridge min or max height regardless of actual X/Z world position.
822 int GetBridgeBorder(const ItemInfo& item, bool isBottom)
823 {
824 auto bounds = GameBoundingBox(&item);
825 return (item.Pose.Position.y + (isBottom ? bounds.Y2 : bounds.Y1));
826 }
827
828 bool TestMaterial(MaterialType refMaterial, const std::vector<MaterialType>& materials)
829 {

Calls 1

GameBoundingBoxClass · 0.50

Tested by

no test coverage detected