MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UpdateBounds

Method UpdateBounds

Source/Engine/Terrain/TerrainPatch.cpp:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void 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
160void TerrainPatch::UpdateTransform()
161{

Callers 3

SetupHeightMapMethod · 0.45
ModifyHeightMapMethod · 0.45

Calls 1

MergeFunction · 0.50

Tested by

no test coverage detected