| 129 | } |
| 130 | |
| 131 | Vector3 PointCollisionData::GetCeilingNormal() |
| 132 | { |
| 133 | if (_ceilingNormal.has_value()) |
| 134 | return *_ceilingNormal; |
| 135 | |
| 136 | // Set ceiling normal. |
| 137 | if (GetCeilingBridgeItemNumber() != NO_VALUE) |
| 138 | { |
| 139 | _ceilingNormal = GetBridgeNormal(false); |
| 140 | } |
| 141 | else |
| 142 | { |
| 143 | _ceilingNormal = GetTopSector().GetSurfaceNormal(_position.x, _position.z, false); |
| 144 | } |
| 145 | |
| 146 | return *_ceilingNormal; |
| 147 | } |
| 148 | |
| 149 | int PointCollisionData::GetFloorBridgeItemNumber() |
| 150 | { |
no test coverage detected