The specification of the generalized centrifugal force model agent.
More...
#include <GCFAgent.h>
|
|
| Agent () |
| | Default constructor.
|
| |
|
| ~Agent () |
| | Destroys this agent instance.
|
| |
|
void | initialize () |
| | Initializes the agent.
|
| |
| void | update (float timeStep) |
| | Updates the two-dimensional position and two-dimensional velocity of this agent. More...
|
| |
|
void | computeNewVelocity () |
| | Computes the new velocity of this agent.
|
| |
| float | getRadius () const |
| | Used in FSM machinery to determine clearance. More...
|
| |
|
void | setRadius (float radius) |
| | Stub function to make compatible with the fsm machinery TODO: Determine if I need this – I believe I deleted these setters.
|
| |
|
void | setStrideParameters (float factor, float buffer) |
| | Stub function to make compatible with the fsm machinery.
|
| |
|
|
Ellipse | _ellipse |
| | The ellipse representing the agent's volume.
|
| |
|
float | _aMin |
| | Minimum ellipse size in facing direction.
|
| |
|
float | _aRate |
| | Rate at which ellipse major axis grows w.r.t. speed.
|
| |
|
float | _bMax |
| | The maximum ellipse width for slow movement This is a bad formulation, because when speed is zero, the ellipse width should get narrower again.
|
| |
|
float | _bGrowth |
| | The maximum increase of ellipse size in perpendicular direction.
|
| |
The specification of the generalized centrifugal force model agent.
| float GCF::Agent::computeDistanceResponse |
( |
float |
effDist | ) |
|
|
protected |
Computes component of the force magnitude based on effective distance.
- Parameters
-
| effDist | The effective distance from ellipse center to force source |
- Returns
- The force magnitude based on the effective distance.
| float GCF::Agent::getRadius |
( |
| ) |
const |
|
inline |
Used in FSM machinery to determine clearance.
- Returns
- The radius of the minor axis of the ellipse (i.e. the half width of the agent). TODO: I don't think this is used....I should make sure that the agents _radius value is updated by the ellipse's minor axis value so simply querying _radius gets the same result.
| void GCF::Agent::update |
( |
float |
timeStep | ) |
|
Updates the two-dimensional position and two-dimensional velocity of this agent.
- Parameters
-
| timeStep | The time step that will be taken. |
The documentation for this class was generated from the following files:
- PedPlugins/PedGCF/GCFAgent.h
- PedPlugins/PedGCF/GCFAgent.cpp