s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Components
NavMeshAgent
GetLookAhead
chevron_left Components
class
NavMeshAgent

Constructors

functionsNavMeshAgent

Fields

crop_dinCurrentLinkTraversal

Properties

data_objectAccelerationdata_objectAgentPositiondata_objectAllowDefaultAreadata_objectAllowedAreasdata_objectAutoTraverseLinksdata_objectForbiddenAreasdata_objectHeightdata_objectIsNavigatingdata_objectIsTraversingLinkdata_objectLinkEnterdata_objectLinkExitdata_objectMaxSpeeddata_objectRadiusdata_objectSeparationremove_circleSyncAgentPositiondata_objectTargetPositiondata_objectUpdatePositiondata_objectUpdateRotationdata_objectVelocitydata_objectWishVelocity

Methods

functionsCompleteLinkTraversalfunctionsGetLookAheadfunctionsGetPathfunctionsMoveTofunctionsSetAgentPositionfunctionsSetPathfunctionsStop
GetLookAhead
Get a point on the current path, distance away from here. This is a simplified path so only includes the first few corners.
method
Vector3 GetLookAhead (float distance)

Parameters

NameTypeDescription
distance float

Returns

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