MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / init

Method init

Engine/source/terrain/terrCell.cpp:280–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280TerrCell* TerrCell::init( TerrainBlock *terrain )
281{
282 // Just create the root cell and call the inner init.
283 TerrCell *root = new TerrCell;
284 root->_init( terrain,
285 Point2I( 0, 0 ),
286 terrain->getBlockSize(),
287 0 );
288
289 // Set initial states of OBBs.
290 root->updateOBBs();
291
292 return root;
293}
294
295
296void TerrCell::_init( TerrainBlock *terrain,

Callers 5

updateGridMethod · 0.45
_updateMaterialsMethod · 0.45
getMaterialMethod · 0.45
_renderBlockMethod · 0.45
_updatePhysicsMethod · 0.45

Calls 4

getBlockSizeMethod · 0.80
updateOBBsMethod · 0.80
Point2IClass · 0.50
_initMethod · 0.45

Tested by

no test coverage detected