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

Method NavMesh

Engine/source/navigation/navMesh.cpp:181–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

EmptyStringMethod · 0.80
dMemsetFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected