C# Class Pathfinding.RVO.Sampled.Agent

Inheritance: IAgent
显示文件 Open project: Alx666/ProjectPhoenix Class Usage Examples

Public Properties

Property Type Description
DesiredVelocityScale float
DesiredVelocityWeight float
GlobalIncompressibility float
locked bool
maxNeighbours int
neighbourDists List
neighbours List
position UnityEngine.Vector3
radius float
simulator Pathfinding.RVO.Simulator
watch1 System.Diagnostics.Stopwatch
watch2 System.Diagnostics.Stopwatch

Public Methods

Method Description
Agent ( Vector3 pos ) : UnityEngine
BufferSwitch ( ) : void
CalculateNeighbours ( ) : void
InsertAgentNeighbour ( Agent agent, float rangeSq ) : float
InsertObstacleNeighbour ( ObstacleVertex ob1, float rangeSq ) : void
Interpolate ( float t ) : void
IntersectionFactor ( Vector2 start1, Vector2 dir1, Vector2 start2, Vector2 dir2, float &factor ) : bool
SetYPosition ( float yCoordinate ) : void
Teleport ( Vector3 pos ) : void
Update ( ) : void

Private Methods

Method Description
CalculateVelocity ( Pathfinding context ) : void
DrawCircle ( Vector2 _p, float radius, Color col ) : void
DrawCircle ( Vector2 _p, float radius, float a0, float a1, Color col ) : void
DrawCross ( Vector2 p, Color col, float size = 1 ) : void
DrawCross ( Vector2 p, float size = 1 ) : void
DrawVO ( Vector2 circleCenter, float radius, Vector2 origin ) : void
Rainbow ( float v ) : Color
Sqr ( float x ) : float
To3D ( Vector2 p ) : Vector3
Trace ( VO vos, int voCount, Vector2 p, float cutoff, float &score ) : Vector2

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

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 Pathfinding.RVO.ObstacleVertex
rangeSq float
return void

Interpolate() public method

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

IntersectionFactor() public static method

public static IntersectionFactor ( Vector2 start1, Vector2 dir1, Vector2 start2, Vector2 dir2, float &factor ) : bool
start1 UnityEngine.Vector2
dir1 UnityEngine.Vector2
start2 UnityEngine.Vector2
dir2 UnityEngine.Vector2
factor float
return bool

SetYPosition() public method

public SetYPosition ( float yCoordinate ) : void
yCoordinate float
return void

Teleport() public method

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

Update() public method

public Update ( ) : void
return void

Property Details

DesiredVelocityScale public_oe static_oe property

public static float DesiredVelocityScale
return float

DesiredVelocityWeight public_oe static_oe property

public static float DesiredVelocityWeight
return float

GlobalIncompressibility public_oe static_oe property

public static float GlobalIncompressibility
return float

locked public_oe property

public bool locked
return bool

maxNeighbours public_oe property

public int maxNeighbours
return int

neighbourDists public_oe property

public List neighbourDists
return List

neighbours public_oe property

public List neighbours
return List

position public_oe property

public Vector3,UnityEngine position
return UnityEngine.Vector3

radius public_oe property

public float radius
return float

simulator public_oe property

public Simulator,Pathfinding.RVO simulator
return Pathfinding.RVO.Simulator

watch1 public_oe static_oe property

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

watch2 public_oe static_oe property

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