MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / findNode

Method findNode

Source/ThirdParty/recastnavigation/DetourNode.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108dtNode* dtNodePool::findNode(dtPolyRef id, unsigned char state)
109{
110 unsigned int bucket = dtHashRef(id) & (m_hashSize-1);
111 dtNodeIndex i = m_first[bucket];
112 while (i != DT_NULL_IDX)
113 {
114 if (m_nodes[i].id == id && m_nodes[i].state == state)
115 return &m_nodes[i];
116 i = m_next[i];
117 }
118 return 0;
119}
120
121dtNode* dtNodePool::getNode(dtPolyRef id, unsigned char state)
122{

Callers

nothing calls this directly

Calls 1

dtHashRefFunction · 0.85

Tested by

no test coverage detected