float _ksi
Relaxation time for the driving force.
Definition: Agent.h:130
bool enabled() const
Returns true if the agent is active.
Definition: Agent.h:44
void destroy()
Destroy the agent.
Definition: Agent.cpp:27
The virtual interface used by objects in the spatial database.
Definition: ProximityDatabaseItem.h:26
float _k
The scaling constant k of the anticipatory law.
Definition: Agent.h:124
Vector2D _position
The position of the character.
Definition: Agent.h:98
float _goalRadiusSq
The goal radius of the character.
Definition: Agent.h:112
Vector2D _velocity
The velocity of the character.
Definition: Agent.h:102
float maxAccel() const
Returns the maximum acceleration of the agent.
Definition: Agent.h:58
float _radius
The radius of the character.
Definition: Agent.h:104
float _maxAccel
The maximum acceleration of the character.
Definition: Agent.h:110
float _prefSpeed
The preferred speed of the character.
Definition: Agent.h:108
Vector2D _F
The final force acting on the agent.
Definition: Agent.h:122
Vector2D vPref() const
Returns the preferred velocity of the agent.
Definition: Agent.h:54
float radius() const
Returns the radius of the agent.
Definition: Agent.h:60
Simulates the anticipatory behavior of an agent.
Definition: Agent.h:31
The initial parameters for a single agent.
Definition: AgentInitialParameters.h:25
void computeNeighbors()
Computes the neighbors which will be considered for computing the anticipatory forces.
ProximityToken * _proximityToken
a pointer to this interface object for the proximity database
Definition: Agent.h:114
SpatialProximityDatabase::tokenType ProximityToken
An object in the proximity database.
Definition: Proximity2D.h:156
Vector2D velocity() const
Returns the velocity of the agent.
Definition: Agent.h:50
int _id
The id of the character.
Definition: Agent.h:106
Vector2D position() const
Returns the position of the agent.
Definition: Agent.h:48
int id() const
Returns the id of the agent.
Definition: Agent.h:62
bool _enabled
Determine whether the charater is enabled;.
Definition: Agent.h:96
Contains the AgentInitialParameters struct.
Vector2D _vPref
the preferred velocity of the character
Definition: Agent.h:94
Contains the LineObstacle class.
float _m
The exponent of the power law (m = 2 in our analysis)
Definition: Agent.h:128
bool isAgent()
Returns true if the object is an agent, false if not.
Definition: Agent.h:42
float prefSpeed() const
Returns the preferred speed of the agent.
Definition: Agent.h:56
float _t0
The exponential cutoff term tau_0.
Definition: Agent.h:126
void setPreferredVelocity(const Vector2D &vPref)
Sets the preferred velocity of the agent to a specific value.
Definition: Agent.h:67
std::vector< ProximityDatabaseItem * > _proximityNeighbors
The proximity neighbors.
Definition: Agent.h:116
A two-dimensional vector class.
Definition: Vector2D.h:28
Vector2D _goal
The goal of the character.
Definition: Agent.h:100
float _neighborDist
The maximum distance from the agent at which an object will be considered.
Definition: Agent.h:120
void computeForces()
Computes the forces exerted on the agent at each simulation step.
Definition: Agent.cpp:82
Vector2D goal() const
Returns the goals of the agent.
Definition: Agent.h:52
This is a modified version of opensteer's data structure for accelerating proximity queries...