Perceptive2D

class Perceptive2D<T> @JvmOverloads constructor(val environment: Physics2DEnvironment<T>, val node: Node<T>, val fieldOfView: InfluenceSphere2D<T> = FieldOfView2D(environment, node, defaultFieldOfViewDepth, defaultFieldOfViewAperture)) : PerceptiveProperty<T> (source)

Base implementation of a pedestrian's capability to influence each other in a 2D space.

Constructors

Link copied to clipboard
constructor(environment: Physics2DEnvironment<T>, node: Node<T>, fieldOfView: InfluenceSphere2D<T> = FieldOfView2D(environment, node, defaultFieldOfViewDepth, defaultFieldOfViewAperture))

Types

Link copied to clipboard
object Companion

Contains the default values for the field of view.

Properties

Link copied to clipboard

The environment where node is moving.

Link copied to clipboard
open override val fieldOfView: InfluenceSphere2D<T>

The field of view of the pedestrian.

Link copied to clipboard
open override val node: Node<T>
Link copied to clipboard
open override val senses: Map<String, InfluenceSphere<T>>

The list of influence spheres belonging to this pedestrian (by default, only its fieldOfView).

Functions

Link copied to clipboard
open override fun cloneOnNewNode(node: Node<T>): Perceptive2D<T>