C# Class Pathfinding.RecastGraph

Inheritance: NavGraph, INavmesh, IRaycastableGraph, IFunnelGraph, IUpdatableGraph, INavmeshHolder
Exibir arquivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
dynamic bool
exportMode bool
importMode bool
nodes TriangleMeshNode[]
tileXCount int
tileZCount int

Public Methods

Method Description
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

Protected Methods

Method Description
BuildTileMesh ( Voxelize vox, int x, int z ) : void
ScanAllTiles ( OnScanStatus statusCallback ) : void
ScanCRecast ( ) : void
ScanTiledNavmesh ( OnScanStatus statusCallback ) : void

Private Methods

Method Description
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

Method Details

AddPortal() public method

public AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
n1 GraphNode
n2 GraphNode
left List
right List
return void

BuildFunnelCorridor() public method

public BuildFunnelCorridor ( List path, int startIndex, int endIndex, List left, List right ) : void
path List
startIndex int
endIndex int
left List
right List
return void

BuildTileMesh() protected method

protected BuildTileMesh ( Voxelize vox, int x, int z ) : void
vox Pathfinding.Voxels.Voxelize
x int
z int
return void

CanUpdateAsync() public method

public CanUpdateAsync ( GraphUpdateObject o ) : GraphUpdateThreading
o GraphUpdateObject
return GraphUpdateThreading

ClosestPointOnNode() public method

public ClosestPointOnNode ( TriangleMeshNode node, Vector3 pos ) : Vector3
node TriangleMeshNode
pos UnityEngine.Vector3
return UnityEngine.Vector3

ConnectTileWithNeighbours() public method

public ConnectTileWithNeighbours ( NavmeshTile tile ) : void
tile NavmeshTile
return void

ContainsPoint() public method

public ContainsPoint ( TriangleMeshNode node, Vector3 pos ) : bool
node TriangleMeshNode
pos UnityEngine.Vector3
return bool

CreateNodes() public method

public CreateNodes ( int number ) : void
number int
return void

DeserializeExtraInfo() public method

public DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
return void

EndBatchTileUpdate() public method

public EndBatchTileUpdate ( ) : void
return void

GetNearest() public method

public GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
hint GraphNode
return NNInfo

GetNearestForce() public method

public GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
return NNInfo

GetNodes() public method

public GetNodes ( GraphNodeDelegateCancelable del ) : void
del GraphNodeDelegateCancelable
return void

GetRecastMeshObjs() public method

public GetRecastMeshObjs ( Bounds bounds, List buffer ) : void
bounds UnityEngine.Bounds
buffer List
return void

GetRecastPath() public static method

public static GetRecastPath ( ) : string
return string

GetSceneMeshes() public method

public GetSceneMeshes ( Bounds bounds ) : List
bounds Bounds
return List

GetTileBounds() public method

public GetTileBounds ( int x, int z ) : Bounds
x int
z int
return Bounds

GetTileBounds() public method

public GetTileBounds ( int x, int z, int width, int depth ) : Bounds
x int
z int
width int
depth int
return Bounds

GetTileCoordinates() public method

public GetTileCoordinates ( Vector3 p ) : Int2
p Vector3
return Int2

GetTileCoordinates() public method

public GetTileCoordinates ( int tileIndex, int &x, int &z ) : void
tileIndex int
x int
z int
return void

GetTileIndex() public method

public GetTileIndex ( int index ) : int
index int
return int

GetTiles() public method

public GetTiles ( ) : NavmeshTile[]
return NavmeshTile[]

GetVertex() public method

public GetVertex ( int index ) : Int3
index int
return Int3

GetVertexArrayIndex() public method

public GetVertexArrayIndex ( int index ) : int
index int
return int

IsJsEnabled() public static method

public static IsJsEnabled ( ) : bool
return bool

Linecast() public method

public Linecast ( Vector3 origin, Vector3 end ) : bool
origin Vector3
end Vector3
return bool

Linecast() public method

public Linecast ( Vector3 origin, Vector3 end, GraphNode hint ) : bool
origin Vector3
end Vector3
hint GraphNode
return bool

Linecast() public method

public Linecast ( Vector3 origin, Vector3 end, GraphNode hint, GraphHitInfo &hit ) : bool
origin Vector3
end Vector3
hint GraphNode
hit GraphHitInfo
return bool

Linecast() public method

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
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( bool drawNodes ) : void
drawNodes bool
return void

PointOnNavmesh() public method

public PointOnNavmesh ( Vector3 position, NNConstraint constraint ) : GraphNode
position Vector3
constraint NNConstraint
return GraphNode

RemoveConnectionsFromTile() public method

public RemoveConnectionsFromTile ( NavmeshTile tile ) : void
tile NavmeshTile
return void

RemoveConnectionsFromTo() public method

public RemoveConnectionsFromTo ( NavmeshTile a, NavmeshTile b ) : void
a NavmeshTile
b NavmeshTile
return void

ReplaceTile() public method

public ReplaceTile ( int x, int z, Int3 verts, int tris, bool worldSpace ) : void
x int
z int
verts Int3
tris int
worldSpace bool
return void

ReplaceTile() public method

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
return void

ScanAllTiles() protected method

protected ScanAllTiles ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
return void

ScanCRecast() protected method

protected ScanCRecast ( ) : void
return void

ScanInternal() public method

public ScanInternal ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
return void

ScanTiledNavmesh() protected method

protected ScanTiledNavmesh ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
return void

SerializeExtraInfo() public method

public SerializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx GraphSerializationContext
return void

SnapForceBoundsToScene() public method

public SnapForceBoundsToScene ( ) : void
return void

StartBatchTileUpdate() public method

public StartBatchTileUpdate ( ) : void
return void

UpdateArea() public method

public UpdateArea ( GraphUpdateObject guo ) : void
guo GraphUpdateObject
return void

UpdateAreaInit() public method

public UpdateAreaInit ( GraphUpdateObject o ) : void
o GraphUpdateObject
return void

Property Details

dynamic public_oe property

public bool dynamic
return bool

exportMode public_oe property

public bool exportMode
return bool

importMode public_oe property

public bool importMode
return bool

nodes public_oe property

public TriangleMeshNode[] nodes
return TriangleMeshNode[]

tileXCount public_oe property

public int tileXCount
return int

tileZCount public_oe property

public int tileZCount
return int