Physical Pedestrian2D
A pedestrian's capability to experience physical forces in a 2D space.
Properties
The comfort area of this pedestrian, it's a circle of radius Shape.radius + comfortRay.
The comfort ray of this pedestrian, this is added to the radius of its Shape to obtain the comfortArea.
Rectangle of influence. When a pedestrian enters this area, the node could experience a tangential avoidance force. See avoid.
Functions
Computes the repulsion force caused by a node that entered the rectangleOfInfluence. This is derived from the work of Pelechano et al.
Computes the total avoidance force this node is subject to.
Turn this node into a fallen pedestrian if it shouldFall.
Computes the avoidance force from a fallen pedestrian.
Computes the repulsion force caused by a node that entered the comfortArea. This is derived from the work of Pelechano et al.
Computes the total repulsion force this node is subject to.
Determines if this pedestrian subject to pushingForces should fall. According to the work of Pelechano et al this should happen when the majority of pushing forces affecting one individual are approximately in the same direction and the sum of forces have a magnitude high enough to make it lose equilibrium.