C# Class WaysNetwork, TheDeadMemories

Inheritance: MonoBehaviour
ファイルを表示 Open project: TheDeadMemoriesTeam/TheDeadMemories Class Usage Examples

Public Properties

Property Type Description
headArc Transform[]
isConnectedGraph bool
isOrientedArc bool[]
tailArc Transform[]

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
generateAdjacencyList ( ) : void
getNbNodes ( ) : int
getNearestNode ( Vector3 position ) : Transform
getRandomNode ( ) : Transform
getShortestPath ( Vector3 from, Vector3 to ) : Vector3[]

Private Methods

Method Description
dijkstra ( Vector3 from, Vector3 to ) : List

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

generateAdjacencyList() public method

public generateAdjacencyList ( ) : void
return void

getNbNodes() public method

public getNbNodes ( ) : int
return int

getNearestNode() public method

public getNearestNode ( Vector3 position ) : Transform
position Vector3
return Transform

getRandomNode() public method

public getRandomNode ( ) : Transform
return Transform

getShortestPath() public method

public getShortestPath ( Vector3 from, Vector3 to ) : Vector3[]
from Vector3
to Vector3
return Vector3[]

Property Details

headArc public_oe property

public Transform[] headArc
return Transform[]

isConnectedGraph public_oe property

public bool isConnectedGraph
return bool

isOrientedArc public_oe property

public bool[] isOrientedArc
return bool[]

tailArc public_oe property

public Transform[] tailArc
return Transform[]