PhysicalPedestrian2D

class PhysicalPedestrian2D<T>(randomGenerator: RandomGenerator, val environment: Physics2DEnvironment<T>, val node: Node<T>) : AbstractNodeProperty<T> , PhysicalPedestrian2D<T>

Base implementation of a pedestrian's capability to experience physical interactions in a 2D space.

Constructors

Link copied to clipboard
constructor(randomGenerator: RandomGenerator, environment: Physics2DEnvironment<T>, node: Node<T>)

Properties

Link copied to clipboard
open override val comfortArea: Euclidean2DShape
Link copied to clipboard
open override val comfortRay: Double
Link copied to clipboard

The environment in which the node is moving.

Link copied to clipboard
open override var isFallen: Boolean
Link copied to clipboard
open override val node: Node<T>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun avoid(other: Node<T>): Euclidean2DPosition
Link copied to clipboard
Link copied to clipboard
open override fun checkAndPossiblyFall()
Link copied to clipboard
open override fun cloneOnNewNode(node: Node<T>): PhysicalPedestrian2D<T>
Link copied to clipboard
Link copied to clipboard
open override fun onFall(listener: (Node<T>) -> Unit)
Link copied to clipboard
open override fun repulse(other: Node<T>): Euclidean2DPosition
Link copied to clipboard
Link copied to clipboard
open override fun shouldFall(pushingForces: List<Euclidean2DPosition>): Boolean
Link copied to clipboard
open override fun toString(): String