Optional id: string | AgentIdProtected _positionCurrent position in environment
Readonly createdCreation timestamp
Readonly idUnique identifier for this agent
Protected lastLast update timestamp
Protected movementMovement configuration
Protected previousPrevious position for collision detection
Protected propertiesAgent properties with type-safe access
Protected stateCurrent agent state
Protected velocityCurrent velocity vector
Static prefixedGet current agent state
Private applyCalculate distance to another position
Calculate distance to another agent
Get all properties as readonly record
Get movement configuration
Get all agent properties as an object
Get agent property with type safety
Check if agent is at a specific position
Check if agent is within a certain distance of a position
Check if agent is within a certain distance of another agent
Private limitMove away from a position
Simple position update with validation
Move towards a target position
Set position with validation and event emission
Set agent property with validation and event emission
Update movement configuration
Protected validateProtected validateValidate position before setting Override in subclasses for custom validation
Protected validateValidate property value before setting Override in subclasses for custom validation
MovingAgent - Agent with velocity-based movement
Features:
Educational Context: Represents community members who move through the environment with realistic physics, such as people walking, vehicles, or flowing resources.