C# Класс Pathfinding.RecastGraph

Наследование: NavGraph, INavmesh, IRaycastableGraph, IFunnelGraph, IUpdatableGraph, INavmeshHolder
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
dynamic bool
exportMode bool
importMode bool
nodes TriangleMeshNode[]
tileXCount int
tileZCount int

Открытые методы

Метод Описание
AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
BuildFunnelCorridor ( List path, int startIndex, int endIndex, List left, List right ) : void
CanUpdateAsync ( GraphUpdateObject o ) : GraphUpdateThreading
ClosestPointOnNode ( TriangleMeshNode node, Vector3 pos ) : Vector3
ConnectTileWithNeighbours ( NavmeshTile tile ) : void
ContainsPoint ( TriangleMeshNode node, Vector3 pos ) : bool
CreateNodes ( int number ) : void
DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
EndBatchTileUpdate ( ) : void
GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint ) : NNInfo
GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
GetNodes ( GraphNodeDelegateCancelable del ) : void
GetRecastMeshObjs ( Bounds bounds, List buffer ) : void
GetRecastPath ( ) : string
GetSceneMeshes ( Bounds bounds ) : List
GetTileBounds ( int x, int z ) : Bounds
GetTileBounds ( int x, int z, int width, int depth ) : Bounds
GetTileCoordinates ( Vector3 p ) : Int2
GetTileCoordinates ( int tileIndex, int &x, int &z ) : void
GetTileIndex ( int index ) : int
GetTiles ( ) : NavmeshTile[]
GetVertex ( int index ) : Int3
GetVertexArrayIndex ( int index ) : int
IsJsEnabled ( ) : bool
Linecast ( Vector3 origin, Vector3 end ) : bool
Linecast ( Vector3 origin, Vector3 end, GraphNode hint ) : bool
Linecast ( Vector3 origin, Vector3 end, GraphNode hint, GraphHitInfo &hit ) : bool
Linecast ( Vector3 tmp_origin, Vector3 tmp_end, GraphNode hint, GraphHitInfo &hit, List trace ) : bool
OnDestroy ( ) : void
OnDrawGizmos ( bool drawNodes ) : void
PointOnNavmesh ( Vector3 position, NNConstraint constraint ) : GraphNode
RemoveConnectionsFromTile ( NavmeshTile tile ) : void
RemoveConnectionsFromTo ( NavmeshTile a, NavmeshTile b ) : void
ReplaceTile ( int x, int z, Int3 verts, int tris, bool worldSpace ) : void
ReplaceTile ( int x, int z, int w, int d, Int3 verts, int tris, bool worldSpace ) : void
ScanInternal ( OnScanStatus statusCallback ) : void
SerializeExtraInfo ( GraphSerializationContext ctx ) : void
SnapForceBoundsToScene ( ) : void
StartBatchTileUpdate ( ) : void
UpdateArea ( GraphUpdateObject guo ) : void
UpdateAreaInit ( GraphUpdateObject o ) : void

Защищенные методы

Метод Описание
BuildTileMesh ( Voxelize vox, int x, int z ) : void
ScanAllTiles ( OnScanStatus statusCallback ) : void
ScanCRecast ( ) : void
ScanTiledNavmesh ( OnScanStatus statusCallback ) : void

Приватные методы

Метод Описание
CollectMeshes ( List &extraMeshes, Bounds bounds ) : bool
CollectTreeMeshes ( List extraMeshes, Terrain terrain ) : void
ConnectTiles ( NavmeshTile tile1, NavmeshTile tile2 ) : void
CreateNodeConnections ( TriangleMeshNode nodes ) : void
CreateTile ( Voxelize vox, VoxelMesh mesh, int x, int z ) : NavmeshTile
NewEmptyTile ( int x, int z ) : NavmeshTile
RasterizeCollider ( Collider col ) : ExtraMesh
RasterizeCollider ( Collider col, Matrix4x4 localToWorldMatrix ) : ExtraMesh

Описание методов

AddPortal() публичный Метод

public AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
n1 GraphNode
n2 GraphNode
left List
right List
Результат void

BuildFunnelCorridor() публичный Метод

public BuildFunnelCorridor ( List path, int startIndex, int endIndex, List left, List right ) : void
path List
startIndex int
endIndex int
left List
right List
Результат void

BuildTileMesh() защищенный Метод

protected BuildTileMesh ( Voxelize vox, int x, int z ) : void
vox Pathfinding.Voxels.Voxelize
x int
z int
Результат void

CanUpdateAsync() публичный Метод

public CanUpdateAsync ( GraphUpdateObject o ) : GraphUpdateThreading
o GraphUpdateObject
Результат GraphUpdateThreading

ClosestPointOnNode() публичный Метод

public ClosestPointOnNode ( TriangleMeshNode node, Vector3 pos ) : Vector3
node TriangleMeshNode
pos UnityEngine.Vector3
Результат UnityEngine.Vector3

ConnectTileWithNeighbours() публичный Метод

public ConnectTileWithNeighbours ( NavmeshTile tile ) : void
tile NavmeshTile
Результат void

ContainsPoint() публичный Метод

public ContainsPoint ( TriangleMeshNode node, Vector3 pos ) : bool
node TriangleMeshNode
pos UnityEngine.Vector3
Результат bool

CreateNodes() публичный Метод

public CreateNodes ( int number ) : void
number int
Результат void

DeserializeExtraInfo() публичный Метод

public DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
Результат void

EndBatchTileUpdate() публичный Метод

public EndBatchTileUpdate ( ) : void
Результат void

GetNearest() публичный Метод

public GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
hint GraphNode
Результат NNInfo

GetNearestForce() публичный Метод

public GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
Результат NNInfo

GetNodes() публичный Метод

public GetNodes ( GraphNodeDelegateCancelable del ) : void
del GraphNodeDelegateCancelable
Результат void

GetRecastMeshObjs() публичный Метод

public GetRecastMeshObjs ( Bounds bounds, List buffer ) : void
bounds UnityEngine.Bounds
buffer List
Результат void

GetRecastPath() публичный статический Метод

public static GetRecastPath ( ) : string
Результат string

GetSceneMeshes() публичный Метод

public GetSceneMeshes ( Bounds bounds ) : List
bounds Bounds
Результат List

GetTileBounds() публичный Метод

public GetTileBounds ( int x, int z ) : Bounds
x int
z int
Результат Bounds

GetTileBounds() публичный Метод

public GetTileBounds ( int x, int z, int width, int depth ) : Bounds
x int
z int
width int
depth int
Результат Bounds

GetTileCoordinates() публичный Метод

public GetTileCoordinates ( Vector3 p ) : Int2
p Vector3
Результат Int2

GetTileCoordinates() публичный Метод

public GetTileCoordinates ( int tileIndex, int &x, int &z ) : void
tileIndex int
x int
z int
Результат void

GetTileIndex() публичный Метод

public GetTileIndex ( int index ) : int
index int
Результат int

GetTiles() публичный Метод

public GetTiles ( ) : NavmeshTile[]
Результат NavmeshTile[]

GetVertex() публичный Метод

public GetVertex ( int index ) : Int3
index int
Результат Int3

GetVertexArrayIndex() публичный Метод

public GetVertexArrayIndex ( int index ) : int
index int
Результат int

IsJsEnabled() публичный статический Метод

public static IsJsEnabled ( ) : bool
Результат bool

Linecast() публичный Метод

public Linecast ( Vector3 origin, Vector3 end ) : bool
origin Vector3
end Vector3
Результат bool

Linecast() публичный Метод

public Linecast ( Vector3 origin, Vector3 end, GraphNode hint ) : bool
origin Vector3
end Vector3
hint GraphNode
Результат bool

Linecast() публичный Метод

public Linecast ( Vector3 origin, Vector3 end, GraphNode hint, GraphHitInfo &hit ) : bool
origin Vector3
end Vector3
hint GraphNode
hit GraphHitInfo
Результат bool

Linecast() публичный Метод

public Linecast ( Vector3 tmp_origin, Vector3 tmp_end, GraphNode hint, GraphHitInfo &hit, List trace ) : bool
tmp_origin Vector3
tmp_end Vector3
hint GraphNode
hit GraphHitInfo
trace List
Результат bool

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

OnDrawGizmos() публичный Метод

public OnDrawGizmos ( bool drawNodes ) : void
drawNodes bool
Результат void

PointOnNavmesh() публичный Метод

public PointOnNavmesh ( Vector3 position, NNConstraint constraint ) : GraphNode
position Vector3
constraint NNConstraint
Результат GraphNode

RemoveConnectionsFromTile() публичный Метод

public RemoveConnectionsFromTile ( NavmeshTile tile ) : void
tile NavmeshTile
Результат void

RemoveConnectionsFromTo() публичный Метод

public RemoveConnectionsFromTo ( NavmeshTile a, NavmeshTile b ) : void
a NavmeshTile
b NavmeshTile
Результат void

ReplaceTile() публичный Метод

public ReplaceTile ( int x, int z, Int3 verts, int tris, bool worldSpace ) : void
x int
z int
verts Int3
tris int
worldSpace bool
Результат void

ReplaceTile() публичный Метод

public ReplaceTile ( int x, int z, int w, int d, Int3 verts, int tris, bool worldSpace ) : void
x int
z int
w int
d int
verts Int3
tris int
worldSpace bool
Результат void

ScanAllTiles() защищенный Метод

protected ScanAllTiles ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
Результат void

ScanCRecast() защищенный Метод

protected ScanCRecast ( ) : void
Результат void

ScanInternal() публичный Метод

public ScanInternal ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
Результат void

ScanTiledNavmesh() защищенный Метод

protected ScanTiledNavmesh ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
Результат void

SerializeExtraInfo() публичный Метод

public SerializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx GraphSerializationContext
Результат void

SnapForceBoundsToScene() публичный Метод

public SnapForceBoundsToScene ( ) : void
Результат void

StartBatchTileUpdate() публичный Метод

public StartBatchTileUpdate ( ) : void
Результат void

UpdateArea() публичный Метод

public UpdateArea ( GraphUpdateObject guo ) : void
guo GraphUpdateObject
Результат void

UpdateAreaInit() публичный Метод

public UpdateAreaInit ( GraphUpdateObject o ) : void
o GraphUpdateObject
Результат void

Описание свойств

dynamic публичное свойство

public bool dynamic
Результат bool

exportMode публичное свойство

public bool exportMode
Результат bool

importMode публичное свойство

public bool importMode
Результат bool

nodes публичное свойство

public TriangleMeshNode[] nodes
Результат TriangleMeshNode[]

tileXCount публичное свойство

public int tileXCount
Результат int

tileZCount публичное свойство

public int tileZCount
Результат int