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

Method NavMesh

Engine/source/navigation/navMesh.cpp:175–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175NavMesh::NavMesh()
176{
177 mTypeMask |= StaticShapeObjectType | MarkerObjectType;
178 mFileName = StringTable->EmptyString();
179 mNetFlags.clear(Ghostable);
180
181 mSaveIntermediates = false;
182 nm = NULL;
183 ctx = NULL;
184
185 mWaterMethod = Ignore;
186
187 dMemset(&cfg, 0, sizeof(cfg));
188 mCellSize = mCellHeight = 0.2f;
189 mWalkableHeight = 2.0f;
190 mWalkableClimb = 0.3f;
191 mWalkableRadius = 0.5f;
192 mWalkableSlope = 40.0f;
193 mBorderSize = 1;
194 mDetailSampleDist = 6.0f;
195 mDetailSampleMaxError = 1.0f;
196 mMaxEdgeLen = 12;
197 mMaxSimplificationError = 1.3f;
198 mMinRegionArea = 8;
199 mMergeRegionArea = 20;
200 mTileSize = 10.0f;
201 mMaxPolysPerTile = 128;
202
203 mSmallCharacters = false;
204 mRegularCharacters = true;
205 mLargeCharacters = false;
206 mVehicles = false;
207
208 mCoverSet = StringTable->EmptyString();
209 mInnerCover = false;
210 mCoverDist = 1.0f;
211 mPeekDist = 0.7f;
212
213 mAlwaysRender = false;
214
215 mBuilding = false;
216 mCurLinkID = 0;
217}
218
219NavMesh::~NavMesh()
220{

Callers

nothing calls this directly

Calls 3

EmptyStringMethod · 0.80
dMemsetFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected