C# Class Pathfinding.RVO.Agent

Inheritance: IAgent
Show file Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
locked bool
maxNeighbours int
position Vector3
radius float
simulator Simulator
watch1 System.Diagnostics.Stopwatch
watch2 System.Diagnostics.Stopwatch

Public Methods

Method Description
Agent ( Vector3 pos ) : UnityEngine
BufferSwitch ( ) : void
CalculateNeighbours ( ) : void
CalculateVelocity ( ) : void
InsertAgentNeighbour ( Agent agent, float rangeSq ) : float
InsertObstacleNeighbour ( ObstacleVertex ob1, float rangeSq ) : void
Interpolate ( float t ) : void
Teleport ( Vector3 pos ) : void
Update ( ) : void
det ( Vector2 a, Vector2 b ) : float
det ( Vector3 a, Vector3 b ) : float

Private Methods

Method Description
DistSqPointLineSegment ( Vector2 a, Vector2 b, Vector2 c ) : float
DistSqPointLineSegment ( Vector3 a, Vector3 b, Vector3 c ) : float
LinearProgram1 ( List lines, int lineNo, float radius, Vector2 optVelocity, bool directionOpt, Vector2 &result ) : bool
LinearProgram2 ( List lines, float radius, Vector2 optVelocity, bool directionOpt, Vector2 &result ) : int
LinearProgram3 ( List lines, int numObstLines, int beginLine, float radius, Vector2 &result ) : void
Sqr ( float v ) : float

Method Details

Agent() public method

public Agent ( Vector3 pos ) : UnityEngine
pos UnityEngine.Vector3
return UnityEngine

BufferSwitch() public method

public BufferSwitch ( ) : void
return void

CalculateNeighbours() public method

public CalculateNeighbours ( ) : void
return void

CalculateVelocity() public method

public CalculateVelocity ( ) : void
return void

InsertAgentNeighbour() public method

public InsertAgentNeighbour ( Agent agent, float rangeSq ) : float
agent Agent
rangeSq float
return float

InsertObstacleNeighbour() public method

public InsertObstacleNeighbour ( ObstacleVertex ob1, float rangeSq ) : void
ob1 ObstacleVertex
rangeSq float
return void

Interpolate() public method

public Interpolate ( float t ) : void
t float
return void

Teleport() public method

public Teleport ( Vector3 pos ) : void
pos UnityEngine.Vector3
return void

Update() public method

public Update ( ) : void
return void

det() public method

public det ( Vector2 a, Vector2 b ) : float
a UnityEngine.Vector2
b UnityEngine.Vector2
return float

det() public method

public det ( Vector3 a, Vector3 b ) : float
a Vector3
b Vector3
return float

Property Details

locked public property

public bool locked
return bool

maxNeighbours public property

public int maxNeighbours
return int

position public property

public Vector3 position
return Vector3

radius public property

public float radius
return float

simulator public property

public Simulator simulator
return Simulator

watch1 public static property

public static System.Diagnostics.Stopwatch watch1
return System.Diagnostics.Stopwatch

watch2 public static property

public static System.Diagnostics.Stopwatch watch2
return System.Diagnostics.Stopwatch