C# Class Pathfinding.RVO.Agent

Inheritance: IAgent
Afficher le fichier Open project: henryj41043/TheUnseen Class Usage Examples

Méthodes publiques

Свойство Type Description
locked bool
maxNeighbours int
position Vector3
radius float
simulator Simulator
watch1 System.Diagnostics.Stopwatch
watch2 System.Diagnostics.Stopwatch

Méthodes publiques

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

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

public Agent ( Vector3 pos ) : UnityEngine
pos UnityEngine.Vector3
Résultat UnityEngine

BufferSwitch() public méthode

public BufferSwitch ( ) : void
Résultat void

CalculateNeighbours() public méthode

public CalculateNeighbours ( ) : void
Résultat void

CalculateVelocity() public méthode

public CalculateVelocity ( ) : void
Résultat void

InsertAgentNeighbour() public méthode

public InsertAgentNeighbour ( Agent agent, float rangeSq ) : float
agent Agent
rangeSq float
Résultat float

InsertObstacleNeighbour() public méthode

public InsertObstacleNeighbour ( ObstacleVertex ob1, float rangeSq ) : void
ob1 ObstacleVertex
rangeSq float
Résultat void

Interpolate() public méthode

public Interpolate ( float t ) : void
t float
Résultat void

Teleport() public méthode

public Teleport ( Vector3 pos ) : void
pos UnityEngine.Vector3
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

det() public méthode

public det ( Vector2 a, Vector2 b ) : float
a UnityEngine.Vector2
b UnityEngine.Vector2
Résultat float

det() public méthode

public det ( Vector3 a, Vector3 b ) : float
a Vector3
b Vector3
Résultat float

Property Details

locked public_oe property

public bool locked
Résultat bool

maxNeighbours public_oe property

public int maxNeighbours
Résultat int

position public_oe property

public Vector3 position
Résultat Vector3

radius public_oe property

public float radius
Résultat float

simulator public_oe property

public Simulator simulator
Résultat Simulator

watch1 public_oe static_oe property

public static System.Diagnostics.Stopwatch watch1
Résultat System.Diagnostics.Stopwatch

watch2 public_oe static_oe property

public static System.Diagnostics.Stopwatch watch2
Résultat System.Diagnostics.Stopwatch