Dungeon Architect
17.0.0
|
Classes | |
struct | ObstacleAvoidanceParams |
Public Member Functions | |
ObstacleAvoidanceQuery (int maxCircles, int maxSegments) | |
Initializes a new instance of the ObstacleAvoidanceQuery class. More... | |
void | Reset () |
Resets the ObstacleAvoidanceQuery's internal data More... | |
void | AddCircle (Vector3 pos, float rad, Vector3 vel, Vector3 dvel) |
Add a new circle to the array More... | |
void | AddSegment (Vector3 p, Vector3 q) |
Add a segment to the array More... | |
void | Prepare (Vector3 position, Vector3 desiredVel) |
Prepare the obstacles for further calculations More... | |
float | ProcessSample (Vector3 vcand, float cs, Vector3 position, float radius, Vector3 vel, Vector3 desiredVel) |
bool | SweepCircleCircle (Vector3 center0, float radius0, Vector3 v, Vector3 center1, float radius1, ref float tmin, ref float tmax) |
bool | IntersectRaySegment (Vector3 ap, Vector3 u, Vector3 bp, Vector3 bq, ref float t) |
Determine whether the ray intersects the segment More... | |
int | SampleVelocityGrid (Vector3 pos, float rad, float vmax, Vector3 vel, Vector3 desiredVel, ref Vector3 nvel, ObstacleAvoidanceParams parameters) |
int | SampleVelocityAdaptive (Vector3 position, float radius, float vmax, Vector3 vel, Vector3 desiredVel, ref Vector3 nvel, ObstacleAvoidanceParams parameters) |
Definition at line 17 of file ObstacleAvoidanceQuery.cs.
SharpNav.Crowds.ObstacleAvoidanceQuery.ObstacleAvoidanceQuery | ( | int | maxCircles, |
int | maxSegments | ||
) |
Initializes a new instance of the ObstacleAvoidanceQuery class.
maxCircles | The maximum number of circles |
maxSegments | The maximum number of segments |
Definition at line 46 of file ObstacleAvoidanceQuery.cs.
void SharpNav.Crowds.ObstacleAvoidanceQuery.AddCircle | ( | Vector3 | pos, |
float | rad, | ||
Vector3 | vel, | ||
Vector3 | dvel | ||
) |
Add a new circle to the array
pos | The position |
rad | The radius |
vel | The velocity |
dvel | The desired velocity |
Definition at line 77 of file ObstacleAvoidanceQuery.cs.
Add a segment to the array
p | One endpoint |
q | The other endpoint |
Definition at line 94 of file ObstacleAvoidanceQuery.cs.
bool SharpNav.Crowds.ObstacleAvoidanceQuery.IntersectRaySegment | ( | Vector3 | ap, |
Vector3 | u, | ||
Vector3 | bp, | ||
Vector3 | bq, | ||
ref float | t | ||
) |
Determine whether the ray intersects the segment
ap | A point |
u | A vector |
bp | Segment B endpoint |
bq | Another one of segment B's endpoints |
t | The parameter t |
Definition at line 263 of file ObstacleAvoidanceQuery.cs.
Prepare the obstacles for further calculations
position | Current position |
desiredVel | Desired velocity |
Definition at line 109 of file ObstacleAvoidanceQuery.cs.
void SharpNav.Crowds.ObstacleAvoidanceQuery.Reset | ( | ) |
Resets the ObstacleAvoidanceQuery's internal data
Definition at line 64 of file ObstacleAvoidanceQuery.cs.