s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
NavMesh
GetClosestEdge
chevron_left Classes
class
NavMesh

Properties

data_objectAgentHeightdata_objectAgentMaxDropdata_objectAgentMaxJumpDistancedata_objectAgentMaxJumpHeightdata_objectAgentMaxSlopedata_objectAgentRadiusdata_objectAgentStepSizedata_objectBoundsdata_objectCustomBoundsdata_objectDeferGenerationdata_objectDrawMeshdata_objectEditorAutoUpdatedata_objectExcludedBodiesdata_objectGenerateLinksdata_objectIncludedBodiesdata_objectIncludeKeyframedBodiesdata_objectIncludeStaticBodiesdata_objectIsDirtydata_objectIsEnableddata_objectIsGenerating

Methods

functionsCalculatePathfunctionsCalculatePathAsyncfunctionsDisposefunctionsGeneratefunctionsGenerateTilefunctionsGenerateTilesfunctionsGetClosestEdgefunctionsGetClosestPointfunctionsGetRandomPointremove_circleGetSimplePathfunctionsRequestTileGenerationfunctionsRequestTilesGenerationfunctionsSetDirtyfunctionsUnloadTilefunctionsUnloadTiles

Static Methods

remove_circleBakeNavMesh
GetClosestEdge
The closest point on the outline of the navmesh, seen from the closest point on the navmesh in the box. Null when there is no navmesh in the box or no outline within its half width of that point.
method2 overloads
Overloads
System.Nullable<Vector3> GetClosestEdge (BBox box)

Parameters

NameTypeDescription
box BBox

Returns

TypeDescription
System.Nullable<Vector3>
Declared in Sandbox.Navigation.NavMesh ยท Assembly Sandbox.Engine
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter