C# Класс Pathfinding.NavMeshGraph

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

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

Свойство Тип Описание
nodes Pathfinding.TriangleMeshNode[]

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

Метод Описание
AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
BuildFunnelCorridor ( INavmesh graph, List path, int startIndex, int endIndex, List left, List right ) : void
BuildFunnelCorridor ( List path, int startIndex, int endIndex, List left, List right ) : void
CanUpdateAsync ( GraphUpdateObject o ) : GraphUpdateThreading
ClosestPointOnNode ( TriangleMeshNode node, Int3 vertices, Vector3 pos ) : Vector3
ContainsPoint ( TriangleMeshNode node, Vector3 pos ) : bool
ContainsPoint ( TriangleMeshNode node, Vector3 pos, Int3 vertices ) : bool
CreateNodes ( int number ) : void
DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
DeserializeMeshNodes ( NavMeshGraph graph, GraphNode nodes, byte bytes ) : void
GenerateMatrix ( ) : void
GenerateNodes ( Vector3 vectorVertices, int triangles, Vector3 &originalVertices, Int3 &vertices ) : void
GetNearest ( NavMeshGraph graph, GraphNode nodes, Vector3 position, NNConstraint constraint, bool accurateNearestNode ) : NNInfo
GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint ) : NNInfo
GetNearestForce ( NavGraph graph, INavmeshHolder navmesh, Vector3 position, NNConstraint constraint, bool accurateNearestNode ) : NNInfo
GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
GetNearestForceBoth ( NavGraph graph, INavmeshHolder navmesh, Vector3 position, NNConstraint constraint, bool accurateNearestNode ) : NNInfo
GetNodes ( GraphNodeDelegateCancelable del ) : void
GetTileCoordinates ( int tileIndex, int &x, int &z ) : void
GetVertex ( int index ) : Int3
GetVertexArrayIndex ( int index ) : int
Linecast ( INavmesh graph, Vector3 tmp_origin, Vector3 tmp_end, GraphNode hint, GraphHitInfo &hit ) : bool
Linecast ( INavmesh graph, Vector3 tmp_origin, Vector3 tmp_end, GraphNode hint, GraphHitInfo &hit, List trace ) : 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 origin, Vector3 end, GraphNode hint, GraphHitInfo &hit, List trace ) : bool
OnDestroy ( ) : void
OnDrawGizmos ( bool drawNodes ) : void
PostProcess ( ) : void
RebuildBBTree ( NavMeshGraph graph ) : void
RelocateNodes ( Matrix4x4 oldMatrix, Matrix4x4 newMatrix ) : void
ScanInternal ( OnScanStatus statusCallback ) : void
ScanInternal ( string objMeshPath ) : void
SerializeExtraInfo ( GraphSerializationContext ctx ) : void
SerializeMeshNodes ( NavMeshGraph graph, GraphNode nodes ) : byte[]
Sort ( Vector3 a ) : void
UpdateArea ( GraphUpdateObject o ) : void
UpdateArea ( GraphUpdateObject o, INavmesh graph ) : void
UpdateAreaInit ( GraphUpdateObject o ) : void

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

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

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

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

public static BuildFunnelCorridor ( INavmesh graph, List path, int startIndex, int endIndex, List left, List right ) : void
graph INavmesh
path List
startIndex int
endIndex int
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

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

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

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

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

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

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

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

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

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

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

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

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

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

public static DeserializeMeshNodes ( NavMeshGraph graph, GraphNode nodes, byte bytes ) : void
graph NavMeshGraph
nodes GraphNode
bytes byte
Результат void

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

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

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

public GenerateNodes ( Vector3 vectorVertices, int triangles, Vector3 &originalVertices, Int3 &vertices ) : void
vectorVertices UnityEngine.Vector3
triangles int
originalVertices UnityEngine.Vector3
vertices Int3
Результат void

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

public static GetNearest ( NavMeshGraph graph, GraphNode nodes, Vector3 position, NNConstraint constraint, bool accurateNearestNode ) : NNInfo
graph NavMeshGraph
nodes GraphNode
position UnityEngine.Vector3
constraint NNConstraint
accurateNearestNode bool
Результат NNInfo

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

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

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

public static GetNearestForce ( NavGraph graph, INavmeshHolder navmesh, Vector3 position, NNConstraint constraint, bool accurateNearestNode ) : NNInfo
graph NavGraph
navmesh INavmeshHolder
position UnityEngine.Vector3
constraint NNConstraint
accurateNearestNode bool
Результат NNInfo

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

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

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

public static GetNearestForceBoth ( NavGraph graph, INavmeshHolder navmesh, Vector3 position, NNConstraint constraint, bool accurateNearestNode ) : NNInfo
graph NavGraph
navmesh INavmeshHolder
position UnityEngine.Vector3
constraint NNConstraint
accurateNearestNode bool
Результат NNInfo

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

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

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

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

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

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

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

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

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

public static Linecast ( INavmesh graph, Vector3 tmp_origin, Vector3 tmp_end, GraphNode hint, GraphHitInfo &hit ) : bool
graph INavmesh
tmp_origin UnityEngine.Vector3
tmp_end UnityEngine.Vector3
hint GraphNode
hit GraphHitInfo
Результат bool

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public static RebuildBBTree ( NavMeshGraph graph ) : void
graph NavMeshGraph
Результат void

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

public RelocateNodes ( Matrix4x4 oldMatrix, Matrix4x4 newMatrix ) : void
oldMatrix UnityEngine.Matrix4x4
newMatrix UnityEngine.Matrix4x4
Результат void

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

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

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

public ScanInternal ( string objMeshPath ) : void
objMeshPath string
Результат void

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

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

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

public static SerializeMeshNodes ( NavMeshGraph graph, GraphNode nodes ) : byte[]
graph NavMeshGraph
nodes GraphNode
Результат byte[]

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

public Sort ( Vector3 a ) : void
a UnityEngine.Vector3
Результат void

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

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

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

public static UpdateArea ( GraphUpdateObject o, INavmesh graph ) : void
o GraphUpdateObject
graph INavmesh
Результат void

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

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

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

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

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