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

Method getGridInfo

Engine/source/gui/worldEditor/terrainEditor.cpp:993–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991//}
992
993bool TerrainEditor::getGridInfo(const GridPoint & gPoint, GridInfo & info)
994{
995 //
996 info.mGridPoint = gPoint;
997 info.mMaterial = getGridMaterial(gPoint);
998 info.mHeight = getGridHeight(gPoint);
999 info.mWeight = 1.f;
1000 info.mPrimarySelect = true;
1001 info.mMaterialChanged = false;
1002
1003 Point2I cPos;
1004 gridToCenter(gPoint.gridPos, cPos);
1005
1006 return isMainTile(gPoint);
1007}
1008
1009bool TerrainEditor::getGridInfo(const Point2I & gPos, GridInfo & info, TerrainBlock* terrain)
1010{

Callers 1

undoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected