| 146 | } |
| 147 | |
| 148 | void TerrainPatch::UpdateBounds() |
| 149 | { |
| 150 | PROFILE_CPU(); |
| 151 | Chunks[0].UpdateBounds(); |
| 152 | _bounds = Chunks[0]._bounds; |
| 153 | for (int32 i = 1; i < Terrain::ChunksCount; i++) |
| 154 | { |
| 155 | Chunks[i].UpdateBounds(); |
| 156 | BoundingBox::Merge(_bounds, Chunks[i]._bounds, _bounds); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | void TerrainPatch::UpdateTransform() |
| 161 | { |
no test coverage detected