Perceptive2D

class Perceptive2D<T> @JvmOverloads constructor(val environment: Physics2DEnvironment<T>, val node: Node<T>, val fieldOfView: InfluenceSphere2D<T> = FieldOfView2D(environment, node, DEFAULT_FIELD_OF_VIEW_DEPTH, DEFAULT_FIELD_OF_VIEW_APERTURE)) : 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, DEFAULT_FIELD_OF_VIEW_DEPTH, DEFAULT_FIELD_OF_VIEW_APERTURE))

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 agent's primary field of view.

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

The set of influence spheres associated with this pedestrian. By default only fieldOfView is present.

Functions

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