C# Class Pathfinding.RVO.KDTree

Mostrar archivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Methods

Method Description
BuildAgentTree ( ) : void
BuildObstacleTree ( ) : void
GetAgentNeighbours ( Agent agent, float rangeSq ) : void
GetObstacleNeighbours ( Agent agent, float rangeSq ) : void
KDTree ( Simulator simulator ) : UnityEngine
RebuildAgents ( ) : void

Private Methods

Method Description
BuildAgentTreeRecursive ( int start, int end, int node ) : void
BuildObstacleTreeRecursive ( List obstacles ) : ObstacleTreeNode
GetOTN ( ) : ObstacleTreeNode
QueryAgentTreeRecursive ( Agent agent, float &rangeSq, int node ) : void
QueryObstacleTreeRecursive ( Agent agent, float rangeSq, ObstacleTreeNode node ) : void
RecycleOTN ( ObstacleTreeNode node ) : void
Sqr ( float v ) : float
countDepth ( ObstacleTreeNode node ) : int

Method Details

BuildAgentTree() public method

public BuildAgentTree ( ) : void
return void

BuildObstacleTree() public method

public BuildObstacleTree ( ) : void
return void

GetAgentNeighbours() public method

public GetAgentNeighbours ( Agent agent, float rangeSq ) : void
agent Agent
rangeSq float
return void

GetObstacleNeighbours() public method

public GetObstacleNeighbours ( Agent agent, float rangeSq ) : void
agent Agent
rangeSq float
return void

KDTree() public method

public KDTree ( Simulator simulator ) : UnityEngine
simulator Simulator
return UnityEngine

RebuildAgents() public method

public RebuildAgents ( ) : void
return void