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

Method getTile

Engine/source/navigation/navMesh.cpp:717–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717S32 NavMesh::getTile(const Point3F& pos)
718{
719 if(mBuilding)
720 return -1;
721 for(U32 i = 0; i < mTiles.size(); i++)
722 {
723 if(mTiles[i].box.isContained(pos))
724 return i;
725 }
726 return -1;
727}
728
729Box3F NavMesh::getTileBox(U32 id)
730{

Callers 4

createCoverPointsMethod · 0.45
saveMethod · 0.45
on3DMouseDownMethod · 0.45
on3DMouseMoveMethod · 0.45

Calls 2

sizeMethod · 0.45
isContainedMethod · 0.45

Tested by

no test coverage detected