| 99 | } |
| 100 | |
| 101 | int PointCollisionData::GetCeilingHeight() |
| 102 | { |
| 103 | if (_ceilingHeight.has_value()) |
| 104 | return *_ceilingHeight; |
| 105 | |
| 106 | // Set ceiling height. |
| 107 | auto location = RoomVector(GetSector().RoomNumber, _position.y); |
| 108 | _ceilingHeight = Floordata::GetSurfaceHeight(location, _position.x, _position.z, false).value_or(NO_HEIGHT); |
| 109 | |
| 110 | return *_ceilingHeight; |
| 111 | } |
| 112 | |
| 113 | Vector3 PointCollisionData::GetFloorNormal() |
| 114 | { |