C# Class Pathfinding.RecastGraph

Inheritance: NavGraph, INavmesh, IRaycastableGraph, IFunnelGraph, IUpdatableGraph, INavmeshHolder
Afficher le fichier Open project: henryj41043/TheUnseen Class Usage Examples

Méthodes publiques

Свойство Type Description
dynamic bool
exportMode bool
importMode bool
nodes TriangleMeshNode[]
tileXCount int
tileZCount int

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
n1 GraphNode
n2 GraphNode
left List
right List
Résultat void

BuildFunnelCorridor() public méthode

public BuildFunnelCorridor ( List path, int startIndex, int endIndex, List left, List right ) : void
path List
startIndex int
endIndex int
left List
right List
Résultat void

BuildTileMesh() protected méthode

protected BuildTileMesh ( Voxelize vox, int x, int z ) : void
vox Pathfinding.Voxels.Voxelize
x int
z int
Résultat void

CanUpdateAsync() public méthode

public CanUpdateAsync ( GraphUpdateObject o ) : GraphUpdateThreading
o GraphUpdateObject
Résultat GraphUpdateThreading

ClosestPointOnNode() public méthode

public ClosestPointOnNode ( TriangleMeshNode node, Vector3 pos ) : Vector3
node TriangleMeshNode
pos UnityEngine.Vector3
Résultat UnityEngine.Vector3

ConnectTileWithNeighbours() public méthode

public ConnectTileWithNeighbours ( NavmeshTile tile ) : void
tile NavmeshTile
Résultat void

ContainsPoint() public méthode

public ContainsPoint ( TriangleMeshNode node, Vector3 pos ) : bool
node TriangleMeshNode
pos UnityEngine.Vector3
Résultat bool

CreateNodes() public méthode

public CreateNodes ( int number ) : void
number int
Résultat void

DeserializeExtraInfo() public méthode

public DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
Résultat void

EndBatchTileUpdate() public méthode

public EndBatchTileUpdate ( ) : void
Résultat void

GetNearest() public méthode

public GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
hint GraphNode
Résultat NNInfo

GetNearestForce() public méthode

public GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
Résultat NNInfo

GetNodes() public méthode

public GetNodes ( GraphNodeDelegateCancelable del ) : void
del GraphNodeDelegateCancelable
Résultat void

GetRecastMeshObjs() public méthode

public GetRecastMeshObjs ( Bounds bounds, List buffer ) : void
bounds UnityEngine.Bounds
buffer List
Résultat void

GetRecastPath() public static méthode

public static GetRecastPath ( ) : string
Résultat string

GetSceneMeshes() public méthode

public GetSceneMeshes ( Bounds bounds ) : List
bounds Bounds
Résultat List

GetTileBounds() public méthode

public GetTileBounds ( int x, int z ) : Bounds
x int
z int
Résultat Bounds

GetTileBounds() public méthode

public GetTileBounds ( int x, int z, int width, int depth ) : Bounds
x int
z int
width int
depth int
Résultat Bounds

GetTileCoordinates() public méthode

public GetTileCoordinates ( Vector3 p ) : Int2
p Vector3
Résultat Int2

GetTileCoordinates() public méthode

public GetTileCoordinates ( int tileIndex, int &x, int &z ) : void
tileIndex int
x int
z int
Résultat void

GetTileIndex() public méthode

public GetTileIndex ( int index ) : int
index int
Résultat int

GetTiles() public méthode

public GetTiles ( ) : NavmeshTile[]
Résultat NavmeshTile[]

GetVertex() public méthode

public GetVertex ( int index ) : Int3
index int
Résultat Int3

GetVertexArrayIndex() public méthode

public GetVertexArrayIndex ( int index ) : int
index int
Résultat int

IsJsEnabled() public static méthode

public static IsJsEnabled ( ) : bool
Résultat bool

Linecast() public méthode

public Linecast ( Vector3 origin, Vector3 end ) : bool
origin Vector3
end Vector3
Résultat bool

Linecast() public méthode

public Linecast ( Vector3 origin, Vector3 end, GraphNode hint ) : bool
origin Vector3
end Vector3
hint GraphNode
Résultat bool

Linecast() public méthode

public Linecast ( Vector3 origin, Vector3 end, GraphNode hint, GraphHitInfo &hit ) : bool
origin Vector3
end Vector3
hint GraphNode
hit GraphHitInfo
Résultat bool

Linecast() public méthode

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
Résultat bool

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( bool drawNodes ) : void
drawNodes bool
Résultat void

PointOnNavmesh() public méthode

public PointOnNavmesh ( Vector3 position, NNConstraint constraint ) : GraphNode
position Vector3
constraint NNConstraint
Résultat GraphNode

RemoveConnectionsFromTile() public méthode

public RemoveConnectionsFromTile ( NavmeshTile tile ) : void
tile NavmeshTile
Résultat void

RemoveConnectionsFromTo() public méthode

public RemoveConnectionsFromTo ( NavmeshTile a, NavmeshTile b ) : void
a NavmeshTile
b NavmeshTile
Résultat void

ReplaceTile() public méthode

public ReplaceTile ( int x, int z, Int3 verts, int tris, bool worldSpace ) : void
x int
z int
verts Int3
tris int
worldSpace bool
Résultat void

ReplaceTile() public méthode

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
Résultat void

ScanAllTiles() protected méthode

protected ScanAllTiles ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
Résultat void

ScanCRecast() protected méthode

protected ScanCRecast ( ) : void
Résultat void

ScanInternal() public méthode

public ScanInternal ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
Résultat void

ScanTiledNavmesh() protected méthode

protected ScanTiledNavmesh ( OnScanStatus statusCallback ) : void
statusCallback OnScanStatus
Résultat void

SerializeExtraInfo() public méthode

public SerializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx GraphSerializationContext
Résultat void

SnapForceBoundsToScene() public méthode

public SnapForceBoundsToScene ( ) : void
Résultat void

StartBatchTileUpdate() public méthode

public StartBatchTileUpdate ( ) : void
Résultat void

UpdateArea() public méthode

public UpdateArea ( GraphUpdateObject guo ) : void
guo GraphUpdateObject
Résultat void

UpdateAreaInit() public méthode

public UpdateAreaInit ( GraphUpdateObject o ) : void
o GraphUpdateObject
Résultat void

Property Details

dynamic public_oe property

public bool dynamic
Résultat bool

exportMode public_oe property

public bool exportMode
Résultat bool

importMode public_oe property

public bool importMode
Résultat bool

nodes public_oe property

public TriangleMeshNode[] nodes
Résultat TriangleMeshNode[]

tileXCount public_oe property

public int tileXCount
Résultat int

tileZCount public_oe property

public int tileZCount
Résultat int