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

Method setHeight

Engine/source/terrain/terrData.cpp:586–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586void TerrainBlock::setHeight( const Point2I &pos, F32 height )
587{
588 U16 ht = floatToFixed( height );
589 mFile->setHeight( pos.x, pos.y, ht );
590
591 // Note: We do not update the grid here as this could
592 // be called several times in a loop. We depend on the
593 // caller doing a grid update when he is done.
594}
595
596F32 TerrainBlock::getHeight( const Point2I &pos )
597{

Callers

nothing calls this directly

Calls 1

floatToFixedFunction · 0.85

Tested by

no test coverage detected