• Articles
  • Api Documentation
Show / Hide Table of Contents
  • AlchemyBow.Navigation
    • AlchemyNavigationSystem
    • BasicAgent
    • FacesHolder
    • NavigationAct
    • NavigationFaceWrapper
    • NavigationInfo
    • PathfindingRequest
    • PathfindingRequest.PathType
    • PathfindingRequest.Status
  • AlchemyBow.Navigation.BackgroundProcessing
    • BackgroundProcessor
    • BackgroundProcessor.States
    • BuildingProcess
    • IBackgroundCommand
    • PathfindingProcess
    • RegisterFaceCommand
    • UnregisterFaceCommand
  • AlchemyBow.Navigation.Collections
    • OrderedSet<T>
    • OrderedSetNode<T>
    • OrderedSetRangeComparer<T>
  • AlchemyBow.Navigation.DebugUnits
    • AlchemyNavigationSystemDebugUnit
    • CompositeSurfaceDrawer
    • GizmosSurfaceDrawer
    • ISurfaceDrawer
    • MinimalGizmosSurfaceDrawer
  • AlchemyBow.Navigation.HighLevel
    • MeshBasedBake
    • MeshBasedBakeGroup
    • MeshBasedBakeSettings
    • WorldMesh
  • AlchemyBow.Navigation.PropertyAttributes
    • AreaIndexAttribute
    • AreaMaskAttribute
    • LayerIndexAttribute
  • AlchemyBow.Navigation.Settings
    • AlchemyNavigationSettingsPreset
    • NavigationAreaSettings
    • NavigationLayerSettings
    • NavigationSettings
  • AlchemyBow.Navigation.Simple
    • SimpleAgent
  • AlchemyBow.Navigation.Simple.Elements
    • AvoidanceGroup
    • AvoidanceModifier
    • CachedFace
    • ISteeredBehaviour
    • MovementModifier
    • PathProgress
  • AlchemyBow.Navigation.Surfaces
    • Edge
    • Face
    • FacesByMagnitudeRangeComparer
    • NavigationSurface
    • SurfaceRaycastHit
    • Usage<TUser>
    • UsageTrackingObject<TUser>
    • Vertex
    • VertexByPositionComparer
  • AlchemyBow.Navigation.Surfaces.SafeAccess
    • IImmutableFace
    • SurfaceImmutableRaycastHit
  • AlchemyBow.Navigation.Utilities
    • ChannelUnwrapper
    • FaceAStar
    • FaceStarUnit
    • Funnel
    • ICommand

Class NavigationSurface

Describes a navigation surface. (One of the system layers.)

Inheritance
System.Object
NavigationSurface
Namespace: AlchemyBow.Navigation.Surfaces
Assembly: AlchemyBow.Navigation.dll
Syntax
public sealed class NavigationSurface

Constructors

| Improve this Doc View Source

NavigationSurface(NavigationLayerSettings)

Creates an instance of the NavigationSurface class.

Declaration
public NavigationSurface(NavigationLayerSettings layerSettings)
Parameters
Type Name Description
NavigationLayerSettings layerSettings

Settings of the surface.

Fields

| Improve this Doc View Source

EpsilonThreshold

The calculations offset.

Declaration
public const float EpsilonThreshold = 1E-05F
Field Value
Type Description
System.Single

The calculations offset.

Methods

| Improve this Doc View Source

ContainsFace(Face)

Determines whether the surface contains the face.

Declaration
public bool ContainsFace(Face face)
Parameters
Type Name Description
Face face

The face to locate.

Returns
Type Description
System.Boolean

true if the face is found in the surface; otherwise, false.

| Improve this Doc View Source

CreateAdvancedDrawer(NavigationSettings)

Creates a sophisticated Gizmos drawer for the current state of the surface.

Declaration
public ISurfaceDrawer CreateAdvancedDrawer(NavigationSettings settings)
Parameters
Type Name Description
NavigationSettings settings

The navigation settings of the system.

Returns
Type Description
ISurfaceDrawer

A sophisticated Gizmos drawer for the current state of the surface.

| Improve this Doc View Source

CreateMinimalDrawer()

Creates an optimized Gizmos drawer for the current state of the surface.

Declaration
public ISurfaceDrawer CreateMinimalDrawer()
Returns
Type Description
ISurfaceDrawer

An optimized Gizmos drawer for the current state of the surface.

| Improve this Doc View Source

FindFirstFaceUnderPosition(Vector3, Int32)

Finds the first Face under the position.

Declaration
public Face FindFirstFaceUnderPosition(Vector3 position, int areaMask)
Parameters
Type Name Description
UnityEngine.Vector3 position

The position.

System.Int32 areaMask

An area mask that is used to selectively ignore faces when casting a ray.

Returns
Type Description
Face

The first Face under the position or null.

| Improve this Doc View Source

RaycastAllInRadius(Ray, Single, Int32, out SurfaceRaycastHit)

Raycasts all faces in the radius.

Declaration
public bool RaycastAllInRadius(Ray ray, float radius, int areaMask, out SurfaceRaycastHit hit)
Parameters
Type Name Description
UnityEngine.Ray ray

The starting point and direction of the ray.

System.Single radius

The radius.

System.Int32 areaMask

An area mask that is used to selectively ignore faces when casting a ray.

SurfaceRaycastHit hit

If true is returned, hit will contain more information about the hit.

Returns
Type Description
System.Boolean

true if the ray intersects with any face; otherwise, false.

| Improve this Doc View Source

RegisterFace(Vector3, Vector3, Vector3, NavigationFaceWrapper)

Registers a triangle as a face.

Declaration
public void RegisterFace(Vector3 a, Vector3 b, Vector3 c, NavigationFaceWrapper handle)
Parameters
Type Name Description
UnityEngine.Vector3 a

Point a of the triangle.

UnityEngine.Vector3 b

Point b of the triangle.

UnityEngine.Vector3 c

Point c of the triangle.

NavigationFaceWrapper handle

The face handle.

| Improve this Doc View Source

UnregisterFace(NavigationFaceWrapper)

Unregisters the face with the handle.

Declaration
public void UnregisterFace(NavigationFaceWrapper handle)
Parameters
Type Name Description
NavigationFaceWrapper handle

The handle to the face.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX