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

Method getLink

Engine/source/navigation/navMesh.cpp:436–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436S32 NavMesh::getLink(const Point3F &pos)
437{
438 for(U32 i = 0; i < mLinkIDs.size(); i++)
439 {
440 if(mDeleteLinks[i])
441 continue;
442 SphereF start(getLinkStart(i), mLinkRads[i]);
443 SphereF end(getLinkEnd(i), mLinkRads[i]);
444 if(start.isContained(pos) || end.isContained(pos))
445 return i;
446 }
447 return -1;
448}
449
450DefineEngineMethod(NavMesh, getLink, S32, (Point3F pos),,
451 "Get the off-mesh link closest to a given world point.")

Callers 15

updateActivationStateMethod · 0.80
solveConstraintsMethod · 0.80
integrateTransformsMethod · 0.80
debugDrawWorldMethod · 0.80
applyGravityMethod · 0.80
clearMultiBodyForcesMethod · 0.80
getIslandIdAMethod · 0.80
getIslandIdBMethod · 0.80

Calls 2

sizeMethod · 0.45
isContainedMethod · 0.45

Tested by

no test coverage detected